workspace-version
v0.1.4
Published
A script to align package versions in an npm workspace
Downloads
983
Readme
workspace-version
A script to align package versions in an npm workspace
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 |