workspace-version
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

workspace-version

A script to align package versions in an npm workspace

npm NPM Typescript

Keeps dependency and package versions within an npm workspace in line.

By default this script will update all child package versions to match that of the workspace version and update all dependency versions that refer to sibling packages:

$ workspace-version  

Alternatively you can run in independent mode:

$ workspace-version -i  

This will not update the child package versions but will still update all dependency versions to that of the sibling projects.

Lastly you can also add all modified files to git:

$ workspace-version -g  

Options

Argument Alias Type Description
workspacePackage w string The path of the workspace package.json. Defaults to 'package.json'
independent i boolean turns on independent versioning of child packages. This will prevent versions of child packages from being updated
gitAdd g boolean adds any target files to git after updating
jsonIndent j number The number of spaces to indent your json file by. Defaults to 4.
help h boolean Show this help text

Package Sidebar

Install

npm i workspace-version

Weekly Downloads

37

Version

0.1.4

License

ISC

Unpacked Size

17.3 kB

Total Files

10

Last publish

Collaborators

  • roaders