open-index/open-npm huggingface dataset:
npm package: @lerna/add
Description: Add a dependency to matched packages
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna add`

> Add a dependency to matched packages

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ 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](https://www.npmjs.com/package/@lerna/filter-options).

### `--dev`

Add the new package to `devDependencies` instead of `dependencies`.

### `--exact`

```sh
$ 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

```sh
# 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
```
npm package: @lerna/batch-packages
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 3.16.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/batch-packages`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/changed
Description: List local packages that have changed since the last tagged release
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna changed`

> List local packages that have changed since the last tagged release

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

The output of `lerna changed` is a list of packages that would be the subjects of the next `lerna version` or `lerna publish` execution.

```sh
$ lerna changed
package-1
package-2
```

**Note:** `lerna.json` configuration for `lerna publish` _and_ `lerna version` also affects
`lerna changed`, e.g. `command.publish.ignoreChanges`.

## Options

`lerna changed` supports all of the flags supported by [`lerna ls`](https://github.com/lerna/lerna/tree/main/libs/commands/list#options):

- [`--json`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--json)
- [`--ndjson`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--ndjson)
- [`-a`, `--all`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--all)
- [`-l`, `--long`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--long)
- [`-p`, `--parseable`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--parseable)
- [`--toposort`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--toposort)
- [`--graph`](https://github.com/lerna/lerna/tree/main/libs/commands/list#--graph)

Unlike `lerna ls`, however, `lerna changed` **does not** support [filter options](https://www.npmjs.com/package/@lerna/filter-options), as filtering is not supported by `lerna version` or `lerna publish`.

`lerna changed` supports the following options of [`lerna version`](https://github.com/lerna/lerna/tree/main/libs/commands/version#options) (the others are irrelevant):

- [`--conventional-graduate`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--conventional-graduate).
- [`--force-publish`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--force-publish).
- [`--ignore-changes`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--ignore-changes).
- [`--include-merged-tags`](https://github.com/lerna/lerna/tree/main/libs/commands/version#--include-merged-tags).
npm package: @lerna/check-working-tree
Description: Check git working tree status and error appropriately
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/check-working-tree`

> Check git working tree status and error appropriately

## Usage

```js
const { checkWorkingTree } = require("@lerna/check-working-tree");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
};

(async () => {
  try {
    await checkWorkingTree(options);
  } catch (err) {
    console.error(err.message);
    // "Working tree has uncommitted changes, ..."
  }
})();
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/clean
Description: Remove the node_modules directory from all packages
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna clean`

> Remove the node_modules directory from all packages

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ lerna clean
```

Remove the `node_modules` directory from all packages.

`lerna clean` accepts all [filter flags](https://www.npmjs.com/package/@lerna/filter-options), as well as `--yes`.

> `lerna clean` does not remove modules from the root `node_modules` directory, even if you have the `--hoist` option enabled.
npm package: @lerna/cli
Description: Lerna's CLI
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/cli`

> Lerna's CLI

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/collect-uncommitted
Description: Collect uncommitted changes to working tree for display in error messages
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/collect-uncommitted`

> Check git working tree status and collect uncommitted changes for display

## Usage

```js
const { collectUncommitted } = require("@lerna/collect-uncommitted");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  log: require("npmlog"),
};

(async () => {
  try {
    const results = await collectUncommitted(options);
    console.log(`Uncommitted changes on CWD ${options.cwd}: ${results.join("\n")}`);
  } catch (err) {
    console.error(err.message);
  }
})();
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/collect-updates
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/collect-updates`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/command
Description: Lerna's internal base class for commands
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/command`

> Lerna's internal base class for commands

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/conventional-commits
Description: Lerna's internal interface to conventional-changelog and friends
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/conventional-commits`

> Lerna's internal interface to conventional-changelog and friends

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/create
Description: Create a new lerna-managed package
Author: Daniel Stockman
Latest version: 9.0.5
Deprecated: This package is an implementation detail of Lerna and is no longer published separately.

# `lerna create`

> Create a new lerna-managed package

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```
lerna create <name> [loc]

Create a new lerna-managed package

Positionals:
  name  The package name (including scope), which must be locally unique _and_
        publicly available                                   [string] [required]
  loc   A custom package location, defaulting to the first configured package
        location. The location must match a configured packages directory.
                                                                        [string]
```

**Note**: For more info on how Lerna package directories are configured, see https://lerna.js.org/docs/faq#how-does-lerna-detect-packages.

```
Command Options:
  --access        When using a scope, set publishConfig.access value
                             [choices: "public", "restricted"] [default: public]
  --bin           Package has an executable. Customize with --bin
                  <executableName>                             [default: <name>]
  --description   Package description                                   [string]
  --dependencies  A list of package dependencies                         [array]
  --es-module     Initialize a transpiled ES Module
  --homepage      The package homepage, defaulting to a subpath of the root
                  pkg.homepage                                          [string]
  --keywords      A list of package keywords                             [array]
  --license       The desired package license (SPDX identifier)   [default: ISC]
  --private       Make the new package private, indicating that it
                  should not be published.
  --registry      Configure the package's publishConfig.registry        [string]
  --tag           Configure the package's publishConfig.tag             [string]
  --yes           Skip all prompts, accepting default values
```
npm package: @lerna/create-symlink
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/create-symlink`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/describe-ref
Description: Parse git describe output for lerna-related tags
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/describe-ref`

> Parse [git describe][] output for lerna-related tags

## Usage

```js
const { describe } = require("@lerna/describe-ref");

(async () => {
  const { lastTagName, lastVersion, refCount, sha, isDirty } = await describe();
})();

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  // pass a glob to match tag name, e.g. "v*.*.*"
  match: undefined,
  // if true, omit --first-parent option
  includeMergedTags: false,
};

const { lastTagName, lastVersion, refCount, sha, isDirty } = describe.sync(options);

const result = describe.parse("v1.0.0-5-gdeadbeef");
// { lastTagName, lastVersion, refCount, sha, isDirty }
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

[git describe]: https://git-scm.com/docs/git-describe
npm package: @lerna/diff
Description: Diff all packages or a single package since the last release
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna diff`

> Diff all packages or a single package since the last release

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ lerna diff [package]

$ lerna diff
# diff a specific package
$ lerna diff package-name
```

Diff all packages or a single package since the last release.

> Similar to `lerna changed`. This command runs `git diff`.
npm package: @lerna/filter-packages
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/filter-packages`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/get-npm-exec-opts
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/get-npm-exec-opts`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/get-packed
Description: Read contents of package tarball created by npm pack
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/get-packed`

> Read contents of package tarball created by npm pack

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/github-client
Description: An internal Lerna tool
Author: Miles Johnson
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/github-client`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/gitlab-client
Description: An internal Lerna tool
Author: Luke Bennett
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/gitlab-client`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/global-options
Description: Global options applicable to _every_ lerna sub-command
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/global-options`

> Global options applicable to _every_ lerna sub-command

## Options

### `--concurrency`

How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)

```sh
$ lerna publish --concurrency 1
```

### `--loglevel <silent|error|warn|success|info|verbose|silly>`

What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory.

Any logs of a higher level than the setting are shown. The default is "info".

### `--max-buffer <bytes>`

Set a max buffer length for each underlying process call. Useful for example
when someone wants to import a repo with a larger amount of commits while
running `lerna import`. In that case the built-in buffer length might not
be sufficient.

### `--no-progress`

Disable progress bars. This is always the case in a CI environment.

### `--no-sort`

Note: As of Lerna 6 this property is ignored when `nx.json` is present.

By default, all tasks execute on packages in topologically sorted order as to respect the dependency relationships of the packages in question. Cycles are broken on a best-effort basis in a way not guaranteed to be consistent across Lerna invocations.

Topological sorting can cause concurrency bottlenecks if there are a small number of packages with many dependents or if some packages take a disproportionately long time to execute. The `--no-sort` option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency.

This option can also help if you run multiple "watch" commands. Since `lerna run` will execute commands in topologically sorted order, it can end up waiting for a command before moving on. This will block execution when you run "watch" commands, since they typically never end. An example of a "watch" command is [running `babel` with the `--watch` CLI flag](https://babeljs.io/docs/usage/cli/#babel-compile-files).

### `--reject-cycles`

Fail immediately if a cycle is found (in `bootstrap`, `exec`, `publish` or `run`).

```sh
$ lerna bootstrap --reject-cycles
```
npm package: @lerna/has-npm-version
Description: Test if the current version of npm satisfies a given semver range
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/has-npm-version`

> Test if the current version of npm satisfies a given semver range

## Usage

```js
const { hasNpmVersion } = require("@lerna/has-npm-version");

// `npm --version` === 6.3.0
hasNpmVersion(">=6"); // => true

// `npm --version` === 5.6.0
hasNpmVersion(">=6"); // => false

// `npm --version` === 6.3.0
hasNpmVersion(">=5"); // => true
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/import
Description: Import a package into the monorepo with commit history
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna import`

> Import a package into the monorepo with commit history

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ lerna import <path-to-external-repository>
```

Import the package at `<path-to-external-repository>`, with commit history,
into `packages/<directory-name>`. Original commit authors, dates and messages
are preserved. Commits are applied to the current branch.

This is useful for gathering pre-existing standalone packages into a Lerna
repo. Each commit is modified to make changes relative to the package
directory. So, for example, the commit that added `package.json` will
instead add `packages/<directory-name>/package.json`.

_Note_: If you're importing an external repository on a new lerna repository, then do remember to have at least one commit.

```bash
# Getting started with Lerna
$ git init lerna-repo && cd lerna-repo
$ npx lerna init
$ npm install

# Adding a commit
$ git add .
$ git commit -m "Initial lerna commit" # Without a commit, import command would fail

# Importing other repository
$ npx lerna import <path-to-external-repository>
```

## Options

### `--flatten`

When importing repositories with merge commits with conflicts, the import command will fail trying to apply all commits. The user can use this flag to ask for import of "flat" history, i.e. with each merge commit as a single change the merge introduced.

```
$ lerna import ~/Product --flatten
```

### `--dest`

When importing repositories, you can specify the destination directory by the directory listed in lerna.json.

```
$ lerna import ~/Product --dest=utilities
```

### `--preserve-commit`

Each git commit has an **author** and a **committer** (with a separate date for each). Usually they're the same person (and date), but since `lerna import` re-creates each commit from the external repository, the **committer** becomes the current git user (and date). This is _technically_ correct, but may be undesirable, for example, on Github, which displays both the **author** and **committer** if they're different people, leading to potentially confusing history/blames on imported commits.

Enabling this option preserves the original **committer** (and commit date) to avoid such issues.

```
$ lerna import ~/Product --preserve-commit
```
npm package: @lerna/info
Description: Prints local environment information
Author: James George
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna info`

> Print local environment information

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

The `info` command prints local environment information that proves to be useful especially while submitting bug reports.

`lerna info`

```bash
Environment Info:

  System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 16.15.0 - ~/.volta/tools/image/node/16.15.0/bin/node
    Yarn: 1.22.18 - ~/.volta/tools/image/yarn/1.22.18/bin/yarn
    npm: 8.5.5 - ~/.volta/tools/image/node/16.15.0/bin/npm
  Utilities:
    Git: 2.37.1 - /usr/bin/git
```
npm package: @lerna/init
Description: Create a new Lerna repo or upgrade an existing repo to the current version of Lerna
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna init`

> Create a new Lerna repo or upgrade an existing repo to the current version of Lerna

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ lerna init
```

Create a new Lerna repo or upgrade an existing repo to the current version of Lerna.

> Lerna assumes the repo has already been initialized with `git init`.

When run, this command will:

1. Add `lerna` as a [`devDependency`](https://docs.npmjs.com/files/package.json#devdependencies) in `package.json` if it doesn't already exist.
2. Create a `lerna.json` config file to store the `version` number.
3. Generate a `.gitignore` file if one doesn't already exist.

Example output on a new git repo:

```sh
$ lerna init
lerna info version v2.0.0
lerna info Updating package.json
lerna info Creating lerna.json
lerna success Initialized Lerna files
```

## Options

### `--independent`

```sh
$ lerna init --independent
```

This flag tells Lerna to use independent versioning mode.

### `--exact`

```sh
$ lerna init --exact
```

By default, `lerna init` will use a caret range when adding or updating
the local version of `lerna`, just like `npm install --save-dev lerna`.

To retain the `lerna` 1.x behavior of "exact" comparison, pass this flag.
It will configure `lerna.json` to enforce exact match for all subsequent executions.

```json
{
  "command": {
    "init": {
      "exact": true
    }
  },
  "version": "0.0.0"
}
```
npm package: @lerna/legacy-package-management
Description: Legacy package management concerns provided by lerna. Please migrate to use npm/yarn/pnpm workspaces instead.
Latest version: 8.2.4
Deprecated: In v9 of lerna, released in September 2025, the `lerna bootstrap`, `lerna add` and `lerna link` commands were finally fully removed after over 2 years of being deprecated. If you are still using these commands, please migrate to using your package manager's long-supported `workspaces` feature. You may find https://lerna.js.org/docs/legacy-package-management useful for this transition.
npm package: @lerna/link
Description: Symlink together all packages that are dependencies of each other
Author: Daniel Stockman
Latest version: 6.6.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `lerna link`

> Symlink together all packages that are dependencies of each other

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

## Usage

```sh
$ lerna link
```

Symlink together all Lerna `packages` that are dependencies of each other in the current Lerna repo.

## Options

### `--force-local`

```sh
$ lerna link --force-local
```

When passed, this flag causes the `link` command to always symlink local dependencies regardless of matching version range.

### `publishConfig.directory`

This _non-standard_ field allows you to customize the symlinked subdirectory that will be the _source_ directory of the symlink, just like how the published package would be consumed.

```json
  "publishConfig": {
    "directory": "dist"
  }
```

In this example, when this package is linked, the `dist` directory will be the source directory (e.g. `package-1/dist => node_modules/package-1`).
npm package: @lerna/listable
Description: Shared logic for listing package information
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/listable`

> Shared logic for listing package information

This is an internal package for [Lerna](https://github.com/lerna/lerna/#readme), YMMV.

## Usage

### `listable.format()`

```js
const listable = require("@lerna/listable");

const { text, count } = listable.format(packages, options);
```

### `listable.options()`

```js
const listable = require("@lerna/listable");

exports.builder = yargs => {
  listable.options(yargs);
};
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/log-packed
Description: Log the result of npm pack --json
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/log-packed`

> Log the result of npm pack --json

Extracted from the [npm source](https://github.com/npm/cli/blob/4f801d8a476f7ca52b0f182bf4e17a80db12b4e2/lib/pack.js#L175-L212).

## Usage

```js
const execa = require("execa");
const { logPacked } = require("@lerna/log-packed");

execa("npm", ["pack", "--json"]).then(result => {
  const tarballs = JSON.parse(result.stdout);
  tarballs.forEach(logPacked);
});
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/map-to-registry
Description: Produce registry uri and auth of package name from npm config
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/map-to-registry`

> Produce registry uri and auth of package name from npm config

## Usage

This is an extraction of an internal npm [utility](https://github.com/npm/npm/blob/f644018/lib/utils/map-to-registry.js). Caveat emptor.

```js
"use strict";

const mapToRegistry = require("@lerna/map-to-registry");
const npmConf = require("@lerna/npm-conf");

const config = npmConf();
const { uri, auth } = mapToRegistry("my-package", config);
```

`uri` and `auth` are suitable for arguments to [npm-registry-client](https://www.npmjs.com/package/npm-registry-client) instance method parameters.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/npm-conf
Description: Vendored npm-conf with updates
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/npm-conf`

> Vendored npm-conf with updates

## Usage

See [npm-conf](https://github.com/kevva/npm-conf#readme)

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/npm-dist-tag
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/npm-dist-tag`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/npm-install
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/npm-install`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/npm-publish
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/npm-publish`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/npm-run-script
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/npm-run-script`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/otplease
Description: Prompt for OTP when wrapped Promise fails
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/otplease`

> Prompt for OTP when wrapped Promise fails

## Usage

This is an internal lerna library, you probably shouldn't use it directly.
npm package: @lerna/output
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/output`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/pack-directory
Description: Pack a directory into an npm package tarball
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/pack-directory`

> Pack a directory into an npm package tarball

This package owes an immense debt of gratitude to [Kat Marchán](https://github.com/zkat), [Rebecca Turner](https://github.com/iarna), and all past contributors to npm for making such awesome software that I basically copied.

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/package
Description: Lerna's internal representation of a package
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/package`

> Lerna's internal representation of a package

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/package-graph
Description: Lerna's internal representation of a package graph
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/package-graph`

> Lerna's internal representation of a package graph

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/prerelease-id-from-version
Description: Get the prerelease ID from a version string
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/prerelease-id-from-version`

> Get the prerelease ID from a version string

## Usage

```js
const { prereleaseIdFromVersion } = require("@lerna/prerelease-id-from-version");

prereleaseIdFromVersion(1.0.0-alpha.0); // => "alpha"

prereleaseIdFromVersion(1.0.0); // => undefined

prereleaseIdFromVersion(); // => undefined
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/profiler
Description: An internal Lerna tool
Author: Benjamin Weggersen
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/profiler`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/project
Description: Lerna project configuration
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/project`

> Lerna project configuration

## Configuration Resolution

Lerna's file-based configuration is located in `lerna.json` or the `lerna` property of `package.json`.
Wherever this configuration is found is considered the "root" of the lerna-managed multi-package repository.
A minimum-viable configuration only needs a `version` property; the following examples are equivalent:

```json
{
  "version": "1.2.3"
}
```

```json
{
  "name": "my-monorepo",
  "version": "0.0.0-root",
  "private": true,
  "lerna": {
    "version": "1.2.3"
  }
}
```

Any other properties on this configuration object will be used as defaults for CLI options of _all_ lerna subcommands. That is to say, CLI options _always_ override values found in configuration files (a standard practice for CLI applications).

### Command-Specific Configuration

To focus configuration on a particular subcommand, use the `command` subtree. Each subproperty of `command` corresponds to a lerna subcommand (`publish`, `create`, `run`, `exec`, etc).

```json
{
  "version": "1.2.3",
  "command": {
    "publish": {
      "loglevel": "verbose"
    }
  },
  "loglevel": "success"
}
```

In the example above, `lerna publish` will act as if `--loglevel verbose` was passed.
All other subcommands will receive the equivalent of `--loglevel success` (much much quieter).
npm package: @lerna/prompt
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/prompt`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/pulse-till-done
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/pulse-till-done`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.
This is a direct extraction of an [internal npm utility](https://github.com/npm/cli/blob/f6ebf5e/lib/utils/pulse-till-done.js).

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/query-graph
Description: An internal Lerna tool
Author: Benjamin Weggersen
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/query-graph`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/resolve-symlink
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/resolve-symlink`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/rimraf-dir
Description: Run rimraf on a directory in a subprocess to hack around slowness
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/rimraf-dir`

> Run rimraf on a directory in a subprocess to hack around slowness

## Usage

```js
const { rimrafDir } = require("@lerna/rimraf-dir");

rimrafDir("/path/to/directory").then(removedDir => {
  console.log("removed", removedDir);
});
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/run-lifecycle
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/run-lifecycle`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/run-parallel-batches
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 3.16.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/run-parallel-batches`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/run-topologically
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/run-topologically`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/symlink-binary
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/symlink-binary`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/symlink-dependencies
Description: Lerna's internal symlinking tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/symlink-dependencies`

> Lerna's internal symlinking tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/temp-write
Description: Write string/buffer/stream to a random temp file
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/temp-write`

> Non-ESM fork (with bumped deps) of https://github.com/sindresorhus/temp-write

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/timer
Description: An internal Lerna tool
Author: Kevin Verdieck
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/timer`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/validation-error
Description: An internal Lerna tool
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/validation-error`

> An internal Lerna tool

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
npm package: @lerna/write-log-file
Description: What lerna uses to dump logs
Author: Daniel Stockman
Latest version: 6.4.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lerna/write-log-file`

> What lerna uses to dump logs

## Usage

You probably shouldn't, at least directly.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.