set-versions

1.0.3 • Public • Published

set-versions

A CLI tool to set the version of leaf packages in a monorepo.

Install

yarn add -D set-versions

Usage

set-versions [options] <version> <packages>

Options

--workspaces (alias -w)

Use workspaces from package.json. If no version is specified, it uses the version from package.json.

Examples

$ set-versions 2.0.0 packages/*/package.json
# Set the version of packages/*/package.json to 2.0.0 and also
# updates any dependencies between packages

$ set-versions --workspaces
# Takes the version from root package.json and then updates all the
# leaf packages

$ set-versions 1.5.0 --workspaces
# Set version of the root package.json and leaf packages to 1.5.0

Related

Package Sidebar

Install

npm i set-versions

Weekly Downloads

140

Version

1.0.3

License

MIT

Unpacked Size

11.9 kB

Total Files

12

Last publish

Collaborators

  • dfernandez79