Observed since 20 Oct, 22:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Run an npm script in each package that contains that script
@0x-lerna-fork/runRun an npm script in each package that contains that script
Install lerna for access to the lerna CLI.
$ 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.
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"
}
}
}
--streamStream output from child processes immediately, prefixed with the originating package name. This allows output from different packages to be interleaved.
$ lerna run watch --stream
--parallelSimilar 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
--parallelflag, 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-prefixDisable 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.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 3.16.3Registry latest | 22 Jul 2019 | 8 | |
| 3.16.2 | 22 Jul 2019 | 8 | |
| 3.0.0-beta.22 | 24 Jul 2018 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2bba5115c6a0923c24bce14743af7d79583928c7811a2cc79dbac23bd9dcf746