lerna bootstrap
Bootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies
Options
Name | Description |
---|---|
--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 |
--npm-client <client> | The exececutable to run the script with |
--hoist <glob> | Install external dependencies matching glob at the repo root so they're available to all packages |
--nohoist <glob> | Do not install external dependencies matching glob at the repo root. This can be used to opt out of hoisting for certain dependencies |
--strict | When used in conjunction with hoist will throw an error and stop bootstrapping after emitting the version warnings. Has no effect if you aren't hoisting, or if there are no version warnings |
--ignore-prepublish | Skip prepublish lifecycle scripts run by default in bootstrapped packages |
--ignore-scripts | Skip any lifecycle scripts normally run (prepare, etc) in bootstrapped packages |
--registry <url> | Forwarded npm commands will use the specified registry for your package(s) |
--use-workspaces | Enables integration with Yarn Workspaces |
--no-ci | Disable usage of `npm ci` in CI environments |
--force-local | When passed, this flag causes the bootstrap command to always symlink local dependencies regardless of matching version range |