@kadena-dev/rush-fix-versions
v0.0.7
Published
Tool to assist with making consistent versions across rush monorepo
Downloads
6
Readme
@kadena-dev/rush-fix-versions
Tool to assist with making consistent versions across rush monorepo
Package allows to align versions to align with ensureConsistentVersions=true
option in rush.json
Integrate with rush
To use this as a command (e.g. rush fix-versions
) you can add this as a
autoinstalled package and add fix-versions
command to the command-line.json
.
For reference see maintaining autoinstallers
- initialize the autoinstaller
rush init-autoinstaller --name rush-fix-versions
- add
@kadena-dev/rush-fix-versions
to theautoinstallers/rush-fix-versions/package.json
- update the lockfile for the autoinstaller
cd common/autoinstallers/rush-fix-versions rush update-autoinstaller --name rush-fix-versions
- add the
fix-versions
command tocommand-line.json
{ "commandKind": "global", "name": "fix-versions", "summary": "Runs fix-versions to get consistent versions across projects", "safeForSimultaneousRushProcesses": false, "autoinstallerName": "rush-fix-versions", // This will invoke ./common/autoinstallers/rush-fix-versions/node_modules/.bin/rush-fix-versions "shellCommand": "rush-fix-versions" },
- Now execute
rush fix-versions
and it'll present you the versions that are misaligned