@kadena-dev/rush-fix-versions
v0.0.7
Published
Tool to assist with making consistent versions across rush monorepo
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-versionsto 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-versionscommand 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-versionsand it'll present you the versions that are misaligned
