lerna

  • Version 8.1.6
  • Published
  • 8.14 MB
  • 80 dependencies
  • MIT license

Install

npm i lerna
yarn add lerna
pnpm add lerna

Overview

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository

Index

Functions

function exec

exec: (
command: string,
args: string[],
opts?: LernaOptions
) => Promise<LernaReturnValue>;
  • Execute a command asynchronously, piping stdio by default.

    Parameter command

    Parameter args

    Parameter opts

    Returns

function execSync

execSync: (command: string, args: string[], opts?: any) => string;
  • Execute a command synchronously.

    Parameter command

    Parameter args

    Parameter opts

function getChildProcessCount

getChildProcessCount: () => number;

    function getExitCode

    getExitCode: (
    result: execa.ExecaError<string> & { code?: string | number }
    ) => number | undefined;
    • Parameter result

      Returns

    function spawn

    spawn: (
    command: string,
    args: string[],
    opts?: LernaOptions
    ) => Promise<LernaReturnValue>;
    • Spawn a command asynchronously, _always_ inheriting stdio.

      Parameter command

      Parameter args

      Parameter opts

    function spawnStreaming

    spawnStreaming: (
    command: string,
    args: string[],
    opts?: LernaOptions,
    prefix?: string
    ) => Promise<LernaReturnValue>;
    • Spawn a command asynchronously, streaming stdio with optional prefix.

      Parameter command

      Parameter args

      Parameter opts

      Parameter prefix

    Type Aliases

    type LernaChildProcess

    type LernaChildProcess = withPkg<execa.ExecaChildProcess<string>>;

      type LernaOptions

      type LernaOptions = withPkg<execa.Options>;

        type LernaReturnValue

        type LernaReturnValue = withPkg<execa.ExecaReturnValue<string>>;

          Package Files (1)

          Dependencies (80)

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (0)

          No peer dependencies.

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/lerna.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/lerna)
          • HTML
            <a href="https://www.jsdocs.io/package/lerna"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>