@kadena-dev/rush-fix-versions
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@kadena-dev/rush-fix-versions

Tool to assist with making consistent versions across rush monorepo

kadena.js logo

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

  1. initialize the autoinstaller
    rush init-autoinstaller --name rush-fix-versions
  2. add @kadena-dev/rush-fix-versions to the autoinstallers/rush-fix-versions/package.json
  3. update the lockfile for the autoinstaller
    cd common/autoinstallers/rush-fix-versions
    rush update-autoinstaller --name rush-fix-versions
  4. add the fix-versions command to command-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"
    },
  5. Now execute rush fix-versions and it'll present you the versions that are misaligned

Readme

Keywords

Package Sidebar

Install

npm i @kadena-dev/rush-fix-versions

Weekly Downloads

0

Version

0.0.7

License

ISC

Unpacked Size

16 kB

Total Files

8

Last publish

Collaborators

  • kadena-lars
  • randynamic
  • alber70g