mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
698 B
Plaintext
30 lines
698 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# lerna
|
|
|
|
> Manage JavaScript projects with multiple packages.
|
|
> More information: <https://lerna.js.org/docs/api-reference/commands>.
|
|
|
|
- Initialize project files (`lerna.json`, `package.json`, `.git`, etc.):
|
|
|
|
`lerna init`
|
|
|
|
- Install all external dependencies of each package and symlink together local dependencies:
|
|
|
|
`lerna bootstrap`
|
|
|
|
- Run a specific script for every package that contains it in its `package.json`:
|
|
|
|
`lerna run {{script}}`
|
|
|
|
- Execute an arbitrary shell command in every package:
|
|
|
|
`lerna exec -- {{ls}}`
|
|
|
|
- Publish all packages that have changed since the last release:
|
|
|
|
`lerna publish`
|