lerna
A tool for managing JavaScript projects with multiple packages
Subcommands
Name | Description |
---|---|
init | Create a new lerna repo or upgrade an existing repo to the current version of Lerna |
bootstrap | Bootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies |
import | Import the package in the local path <pathToRepo> into packages/<directory-name> with commit history |
publish | Create a new release of the packages that have been updated. Prompts for a new version and updates all the packages on git and npm |
ls | List local packages |
ll | List local packages |
la | List local packages |
list | List local packages |
changed | Check which packages have changed since the last release |
run | Run an npm script in each package that contains that script |
link | Symlink together all Lerna packages that are dependencies of each other in the current Lerna repo |
info | Prints local environment information that proves to be useful especially while submitting bug reports |
version | Bump version of packages changed since the last release |
diff | Diff all packages or a single package since the last release |
exec | Execute an arbitrary command in each package |
add | Add a dependency to matched packages |
clean | Remove the node_modules directory from all packages |
create | Create a new lerna-managed package |