lerna

A tool for managing JavaScript projects with multiple packages.

TLDR

Initialize project files (lerna.json, package.json, .git, etc.)

$ lerna init
copy


Install all external dependencies of each package and symlink together local dependencies
$ lerna bootstrap
copy


Run a specific script for every package that contains it in its package.json
$ lerna run [script]
copy


Execute an arbitrary shell command in every package
$ lerna exec -- [ls]
copy


Publish all packages that have changed since the last release
$ lerna publish
copy

Copied to clipboard