@lerna/add

Add a dependency to matched packages

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
Last updated 4 years ago by evocateur .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @lerna/add 
SYNC missed versions from official npm registry.

lerna add

Add a dependency to matched packages

Install lerna for access to the lerna CLI.

Usage

$ lerna add <package>[@version] [--dev] [--exact] [--peer]

Add local or remote package as dependency to packages in the current Lerna repo. Note that only a single package can be added at a time compared to yarn add or npm install.

When run, this command will:

  1. Add package to each applicable package. Applicable are packages that are not package and are in scope
  2. Bootstrap packages with changes to their manifest file (package.json)

If no version specifier is provided, it defaults to the latest dist-tag, just like npm install.

Options

lerna add accepts all filter flags.

--dev

Add the new package to devDependencies instead of dependencies.

--exact

$ lerna add --exact

Add the new package with an exact version (e.g., 1.0.1) rather than the default ^ semver range (e.g., ^1.0.1).

--peer

Add the new package to peerDependencies instead of dependencies.

--registry <url>

Use a custom registry to install the targeted package.

--no-bootstrap

Skip the chained lerna bootstrap.

Examples

# Adds the module-1 package to the packages in the 'prefix-' prefixed folders
lerna add module-1 packages/prefix-*

# Install module-1 to module-2
lerna add module-1 --scope=module-2

# Install module-1 to module-2 in devDependencies
lerna add module-1 --scope=module-2 --dev

# Install module-1 to module-2 in peerDependencies
lerna add module-1 --scope=module-2 --peer

# Install module-1 in all modules except module-1
lerna add module-1

# Install babel-core in all modules
lerna add babel-core

Current Tags

  • 6.6.2                                ...           latest (2 years ago)
  • 6.5.0                                ...           next (2 years ago)

131 Versions

  • 6.6.2 [deprecated]           ...           2 years ago
  • 6.6.1 [deprecated]           ...           2 years ago
  • 6.6.0 [deprecated]           ...           2 years ago
  • 6.5.1 [deprecated]           ...           2 years ago
  • 6.5.0 [deprecated]           ...           2 years ago
  • 6.5.0-alpha.2 [deprecated]           ...           2 years ago
  • 6.5.0-alpha.1 [deprecated]           ...           2 years ago
  • 6.5.0-alpha.0 [deprecated]           ...           2 years ago
  • 6.4.2-beta.0 [deprecated]           ...           2 years ago
  • 6.4.1 [deprecated]           ...           2 years ago
  • 6.4.0 [deprecated]           ...           2 years ago
  • 6.3.1-beta.8 [deprecated]           ...           2 years ago
  • 6.3.1-beta.6 [deprecated]           ...           2 years ago
  • 6.3.1-beta.5 [deprecated]           ...           2 years ago
  • 6.3.1-beta.4 [deprecated]           ...           2 years ago
  • 6.3.1-beta.3 [deprecated]           ...           2 years ago
  • 6.3.1-beta.2 [deprecated]           ...           2 years ago
  • 6.3.1-beta.1 [deprecated]           ...           2 years ago
  • 6.3.1-beta.0 [deprecated]           ...           2 years ago
  • 6.3.0 [deprecated]           ...           2 years ago
  • 6.2.0 [deprecated]           ...           2 years ago
  • 6.1.0 [deprecated]           ...           2 years ago
  • 6.0.3 [deprecated]           ...           2 years ago
  • 6.0.2 [deprecated]           ...           2 years ago
  • 6.0.1 [deprecated]           ...           2 years ago
  • 6.0.0 [deprecated]           ...           2 years ago
  • 6.0.0-alpha.2 [deprecated]           ...           2 years ago
  • 6.0.0-alpha.1 [deprecated]           ...           2 years ago
  • 5.6.2 [deprecated]           ...           2 years ago
  • 6.0.0-alpha.0 [deprecated]           ...           2 years ago
  • 5.6.1 [deprecated]           ...           2 years ago
  • 5.6.0 [deprecated]           ...           2 years ago
  • 5.5.4 [deprecated]           ...           2 years ago
  • 5.5.3 [deprecated]           ...           2 years ago
  • 5.5.2 [deprecated]           ...           2 years ago
  • 5.5.1 [deprecated]           ...           2 years ago
  • 5.5.0 [deprecated]           ...           2 years ago
  • 5.4.3 [deprecated]           ...           2 years ago
  • 5.4.2 [deprecated]           ...           2 years ago
  • 5.4.1 [deprecated]           ...           2 years ago
  • 5.4.0 [deprecated]           ...           2 years ago
  • 5.3.0 [deprecated]           ...           2 years ago
  • 5.2.0 [deprecated]           ...           2 years ago
  • 5.1.8 [deprecated]           ...           2 years ago
  • 5.1.7 [deprecated]           ...           2 years ago
  • 5.1.6 [deprecated]           ...           3 years ago
  • 5.1.5 [deprecated]           ...           3 years ago
  • 5.1.4 [deprecated]           ...           3 years ago
  • 5.1.3 [deprecated]           ...           3 years ago
  • 5.1.2 [deprecated]           ...           3 years ago
  • 5.1.1 [deprecated]           ...           3 years ago
  • 5.1.0 [deprecated]           ...           3 years ago
  • 5.1.0-alpha.0 [deprecated]           ...           3 years ago
  • 5.0.0 [deprecated]           ...           3 years ago
  • 5.0.0-alpha.2 [deprecated]           ...           3 years ago
  • 5.0.0-alpha.1 [deprecated]           ...           3 years ago
  • 5.0.0-alpha.0 [deprecated]           ...           3 years ago
  • 4.0.0 [deprecated]           ...           4 years ago
  • 3.21.0 [deprecated]           ...           5 years ago
  • 3.20.0 [deprecated]           ...           5 years ago
  • 3.19.0 [deprecated]           ...           5 years ago
  • 3.18.5 [deprecated]           ...           5 years ago
  • 3.18.4 [deprecated]           ...           5 years ago
  • 3.18.0 [deprecated]           ...           5 years ago
  • 3.17.0 [deprecated]           ...           5 years ago
  • 3.16.5 [deprecated]           ...           5 years ago
  • 3.16.2 [deprecated]           ...           5 years ago
  • 3.16.1 [deprecated]           ...           5 years ago
  • 3.16.0 [deprecated]           ...           5 years ago
  • 3.15.0 [deprecated]           ...           6 years ago
  • 3.14.2 [deprecated]           ...           6 years ago
  • 3.14.0 [deprecated]           ...           6 years ago
  • 3.13.3 [deprecated]           ...           6 years ago
  • 3.13.1 [deprecated]           ...           6 years ago
  • 3.13.0 [deprecated]           ...           6 years ago
  • 3.12.1 [deprecated]           ...           6 years ago
  • 3.12.0 [deprecated]           ...           6 years ago
  • 3.11.0 [deprecated]           ...           6 years ago
  • 3.10.6 [deprecated]           ...           6 years ago
  • 3.10.5 [deprecated]           ...           6 years ago
  • 3.10.4 [deprecated]           ...           6 years ago
  • 3.10.3 [deprecated]           ...           6 years ago
  • 3.10.2 [deprecated]           ...           6 years ago
  • 3.10.1 [deprecated]           ...           6 years ago
  • 3.10.0 [deprecated]           ...           6 years ago
  • 3.9.1 [deprecated]           ...           6 years ago
  • 3.9.0 [deprecated]           ...           6 years ago
  • 3.8.5 [deprecated]           ...           6 years ago
  • 3.8.2 [deprecated]           ...           6 years ago
  • 3.8.1 [deprecated]           ...           6 years ago
  • 3.7.2 [deprecated]           ...           6 years ago
  • 3.7.1 [deprecated]           ...           6 years ago
  • 3.7.0 [deprecated]           ...           6 years ago
  • 3.6.0 [deprecated]           ...           6 years ago
  • 3.5.0 [deprecated]           ...           6 years ago
  • 3.4.1 [deprecated]           ...           6 years ago
  • 3.3.2 [deprecated]           ...           6 years ago
  • 3.3.1 [deprecated]           ...           6 years ago
  • 3.3.0 [deprecated]           ...           6 years ago
  • 3.2.0 [deprecated]           ...           6 years ago
  • 3.1.4 [deprecated]           ...           6 years ago
  • 3.1.3 [deprecated]           ...           6 years ago
  • 3.1.2 [deprecated]           ...           6 years ago
  • 3.1.1 [deprecated]           ...           6 years ago
  • 3.1.0 [deprecated]           ...           6 years ago
  • 3.0.6 [deprecated]           ...           6 years ago
  • 3.0.5 [deprecated]           ...           6 years ago
  • 3.0.4 [deprecated]           ...           6 years ago
  • 3.0.0 [deprecated]           ...           6 years ago
  • 3.0.0-rc.0 [deprecated]           ...           6 years ago
  • 3.0.0-beta.21 [deprecated]           ...           7 years ago
  • 3.0.0-beta.20 [deprecated]           ...           7 years ago
  • 3.0.0-beta.19 [deprecated]           ...           7 years ago
  • 3.0.0-beta.18 [deprecated]           ...           7 years ago
  • 3.0.0-beta.17 [deprecated]           ...           7 years ago
  • 3.0.0-beta.15 [deprecated]           ...           7 years ago
  • 3.0.0-beta.14 [deprecated]           ...           7 years ago
  • 3.0.0-beta.13 [deprecated]           ...           7 years ago
  • 3.0.0-beta.12 [deprecated]           ...           7 years ago
  • 3.0.0-beta.11 [deprecated]           ...           7 years ago
  • 3.0.0-beta.10 [deprecated]           ...           7 years ago
  • 3.0.0-beta.9 [deprecated]           ...           7 years ago
  • 3.0.0-beta.8 [deprecated]           ...           7 years ago
  • 3.0.0-beta.7 [deprecated]           ...           7 years ago
  • 3.0.0-beta.6 [deprecated]           ...           7 years ago
  • 3.0.0-beta.5 [deprecated]           ...           7 years ago
  • 3.0.0-beta.4 [deprecated]           ...           7 years ago
  • 3.0.0-beta.3 [deprecated]           ...           7 years ago
  • 3.0.0-beta.2 [deprecated]           ...           7 years ago
  • 3.0.0-beta.1 [deprecated]           ...           7 years ago
  • 3.0.0-beta.0 [deprecated]           ...           7 years ago
Maintainers (2)
Downloads
Total 2
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE