Skip to content

civicsource/workspace-versioner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-versioner

Run the following command from your workspace root:

workspace-versioner 1.2.3

This 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 lint

and to automatically fix fixable errors:

yarn run lint --fix