lerna add
Add a dependency to matched packages
Options
Name | Description |
---|---|
--concurrency | How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores) |
--loglevel <loglevel> | What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory |
--max-buffer <bytes> | Set a max buffer length for each underlying process call |
--no-progress | Disable progress bars. This is always the case in a CI environment |
--no-sort | The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency |
--reject-cycles | Fail immediately if a cycle is found (in bootstrap, exec, publish or run) |
-h, --help | Show help |
-v, --version | Show version number |
--scope <glob> | Include only packages with names matching the given glob |
--ignore <glob> | Exclude packages with names matching the given glob |
--no-private | Exclude private packages. They are included by default |
--since [ref] | Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag |
--exclude-dependents | Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm |
--include-dependents | Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm |
--include-dependencies | Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since |
--include-merged-tags | Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended |
--dev | Add the new package to devDependencies instead of dependencies |
--exact | Add the new package with an exact version |
--peer | Add the new package to peerDependencies instead of dependencies |
--registry <registry> | Use a custom registry to install the targeted package |
--no-bootstrap | Skip the chained lerna bootstrap |