Catalog npm
Back to packageRELEASE DETAILS

3.16.3

npm

@0x-lerna-fork/run

Run an npm script in each package that contains that script

commandlerna
Published22 Jul 2019
Direct dependencies8
Transitive dependenciesNot calculated

README

Current package documentation

@0x-lerna-fork/run

Run an npm script in each package that contains that script

Install lerna for access to the lerna CLI.

Usage

$ lerna run <script> -- [..args] # runs npm run my-script in all packages that have it
$ lerna run test
$ lerna run build

# watch all packages and transpile on change, streaming prefixed output
$ lerna run --parallel watch

Run an npm script in each package that contains that script. A double-dash (--) is necessary to pass dashed arguments to the script execution.

Options

lerna run respects the --concurrency, --scope, and --ignore flags (see Filter Flags).

$ lerna run --scope my-component test

--npm-client <client>

Must be an executable that knows how to run npm lifecycle scripts. The default --npm-client is npm.

$ lerna run build --npm-client=yarn

May also be configured in lerna.json:

{
  "command": {
    "run": {
      "npmClient": "yarn"
    }
  }
}

--stream

Stream output from child processes immediately, prefixed with the originating package name. This allows output from different packages to be interleaved.

$ lerna run watch --stream

--parallel

Similar to --stream, but completely disregards concurrency and topological sorting, running a given command or script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes such as npm run watch run over many packages.

$ lerna run watch --parallel

Note: It is advised to constrain the scope of this command when using the --parallel flag, as spawning dozens of subprocesses may be harmful to your shell's equanimity (or maximum file descriptor limit, for example). YMMV

--no-bail

# Run an npm script in all packages that contain it, ignoring non-zero (error) exit codes
$ lerna run --no-bail test

By default, lerna run will exit with an error if any script run returns a non-zero exit code. Pass --no-bail to disable this behavior, running the script in all packages that contain it regardless of exit code.

--no-prefix

Disable package name prefixing when output is streaming (--stream or --parallel). This option can be useful when piping results to other processes, such as editor plugins.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x-lerna-fork/command
Environment
{
  "local_name": "@0x-lerna-fork/command",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/filter-options
Environment
{
  "local_name": "@0x-lerna-fork/filter-options",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/npm-run-script
Environment
{
  "local_name": "@0x-lerna-fork/npm-run-script",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/output
Environment
{
  "local_name": "@0x-lerna-fork/output",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/run-topologically
Environment
{
  "local_name": "@0x-lerna-fork/run-topologically",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/timer
Environment
{
  "local_name": "@0x-lerna-fork/timer",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
@0x-lerna-fork/validation-error
Environment
{
  "local_name": "@0x-lerna-fork/validation-error",
  "alias": false,
  "peer_metadata": null
}
3.16.3runtime
p-map
Environment
{
  "local_name": "p-map",
  "alias": false,
  "peer_metadata": null
}
^2.1.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-mU15Q4aC7cRj7y5a6xtW5LDfXXdl2nbc4SNPbJQw/8Csu/ewQvbcP0gcWFL4AgV/xemooPStb8UzFSznweJO4Q==",
  "shasum": "4da4fab40d6366f808c528ee4451626a29387575",
  "tarball": "https://registry.npmjs.org/@0x-lerna-fork/run/-/run-3.16.3.tgz",
  "fileCount": 6,
  "unpackedSize": 22864,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNgO7CRA9TVsSAnZWagAADEYQAJl+bxes3lZC3vdCmBmA\nh13QU35IZAIG85K4Zv7qQACzXd4cv2BoKj4Pl85KuNB62UC1rJi6YApHDR8m\n93X/+LBYEnQXGKrxNPjJCZEWCBcmSbv+FkRG3C4zhdGpuBX2N7AEteRro4rg\nIDCbdi9pP8JGCIXgxgOWFs7vz7b8LPOPrQVtz2rJicdNFcKmTWlRa3kGvuF3\n62pqtZPKLXAtT+NuoQA1M13leG4FzC8/b810SpNvQ8pwV7fKkzqmjaqc/Su9\n/mdOmLdL6/hBEOrVwrLI8mt5WvoLoyY+sD+oEzc1XwwI+66QIVKbmvWBieSu\nw58DsoMA4XazJOCiAMHBMGavDKGD25XXhHx9qqk8kAxBhg9T3zmNkgQz6rVE\noe4HujuCoF0c/DspUkDxZrs5nWBB8FprneNxkRxO4TANgCdErvcnu3vnBfWW\nHPW3vjsVho8Vnz6+QON4ebVNJHoM9u8gTe6KRW5feRWC+dHyhMeBUb7Dj5va\n2gHP1crmJM6I6Dr6ThgJ0KVUoavH4IPTWPvFOXzxHhnw3WBmEruTYhwNg7un\nIBx4T9S8Jy2mu7CLaDoosofgJl2pVericWac9WzEBaWdYWNktTKRS1VWFk2L\nkgr6xc7uxbzBIdqICGvGdCeCbCBwuSWYKB8F5JajjtWzXqSA+YDTPuZ6BPxB\n2J2I\r\n=JRRr\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIEjfFBD5nHmvvNzD8jX0YGpKj7f/0EOkoFCidzDlb/v7AiEAvN377P1W6vOrIh1Exm4UOOnC8YFYmNWzX6VO/ZSlaxM="
    }
  ]
}

Repository

PENDING
lerna/lerna

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1b73d596f0bd2e89af34458dcdf3e05ddbdf3cc94f81cb5a202a10252716f8ec

Other collected versions

3.16.222 Jul3.0.0-beta.2224 JulView all collected versions →