1.1.3 • Published 7 years ago
workspace-versioner v1.1.3
Workspace Versioner
A poor man's lerna.
This tool will set the version field for all package.jsons in a yarn workspace to the same specified version. It will also take care of updating any cross references within the workspace to that same version as well. If no workspaces are found in the root package.json, it will just update the root package.json version field.
We run this on our build server to set the version number in our frontend workspace to the build-server generated version number.
Usage
First, install the package globally:
yarn global add workspace-versionerRun the following command from your workspace root:
workspace-versioner 1.2.3This will version all packages within the workspace to v1.2.3.
Contributing
Clone the repo and run yarn to install dependencies.
Linting
To run the linter:
yarn run lintand to automatically fix fixable errors:
yarn run lint --fix