{"name":"@lerna/run","version":"3.13.1","description":"Run an npm script in each package that contains that script","keywords":["lerna","command"],"homepage":"https://github.com/lerna/lerna/tree/master/commands/run#readme","license":"MIT","author":{"name":"Daniel Stockman","url":"https://github.com/evocateur"},"main":"index.js","engines":{"node":">= 6.9.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/lerna/lerna.git","directory":"commands/run"},"scripts":{"test":"echo \"Run tests from root\" && exit 1"},"yargs":{"populate--":true},"dependencies":{"@lerna/batch-packages":"3.13.0","@lerna/command":"3.13.1","@lerna/filter-options":"3.13.0","@lerna/npm-run-script":"3.13.0","@lerna/output":"3.13.0","@lerna/run-parallel-batches":"3.13.0","@lerna/timer":"3.13.0","@lerna/validation-error":"3.13.0","p-map":"^1.2.0"},"gitHead":"514bc57a53232adb90a2bb4b03e1c08d709997ea","readme":"# `@lerna/run`\n\n> Run an npm script in each package that contains that script\n\nInstall [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.\n\n## Usage\n\n```sh\n$ lerna run <script> -- [..args] # runs npm run my-script in all packages that have it\n$ lerna run test\n$ lerna run build\n\n# watch all packages and transpile on change, streaming prefixed output\n$ lerna run --parallel watch\n```\n\nRun an [npm script](https://docs.npmjs.com/misc/scripts) in each package that contains that script. A double-dash (`--`) is necessary to pass dashed arguments to the script execution.\n\n## Options\n\n`lerna run` respects the `--concurrency`, `--scope`, and `--ignore` flags (see [Filter Flags](https://www.npmjs.com/package/@lerna/filter-options)).\n\n```sh\n$ lerna run --scope my-component test\n```\n\n### `--npm-client <client>`\n\nMust be an executable that knows how to run npm lifecycle scripts.\nThe default `--npm-client` is `npm`.\n\n```sh\n$ lerna run build --npm-client=yarn\n```\n\nMay also be configured in `lerna.json`:\n\n```json\n{\n  \"command\": {\n    \"run\": {\n      \"npmClient\": \"yarn\"\n    }\n  }\n}\n```\n\n### `--stream`\n\nStream output from child processes immediately, prefixed with the originating\npackage name. This allows output from different packages to be interleaved.\n\n```sh\n$ lerna run watch --stream\n```\n\n### `--parallel`\n\nSimilar 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.\n\n```sh\n$ lerna run watch --parallel\n```\n\n> **Note:** It is advised to constrain the scope of this command when using\n> the `--parallel` flag, as spawning dozens of subprocesses may be\n> harmful to your shell's equanimity (or maximum file descriptor limit,\n> for example). YMMV\n\n### `--no-bail`\n\n```sh\n# Run an npm script in all packages that contain it, ignoring non-zero (error) exit codes\n$ lerna run --no-bail test\n```\n\nBy default, `lerna run` will exit with an error if _any_ script run returns a non-zero exit code.\nPass `--no-bail` to disable this behavior, running the script in _all_ packages that contain it regardless of exit code.\n\n### `--no-prefix`\n\nDisable package name prefixing when output is streaming (`--stream` _or_ `--parallel`).\nThis option can be useful when piping results to other processes, such as editor plugins.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/run@3.13.1","_nodeVersion":"10.15.1","_npmVersion":"lerna/3.13.0/node@v10.15.1+x64 (darwin)","dist":{"integrity":"sha512-nv1oj7bsqppWm1M4ifN+/IIbVu9F4RixrbQD2okqDGYne4RQPAXyb5cEZuAzY/wyGTWWiVaZ1zpj5ogPWvH0bw==","shasum":"87e174c1d271894ddd29adc315c068fb7b1b0117","tarball":"http://registry-npm.ywwl.com/@lerna/run/download/@lerna/run-3.13.1.tgz","fileCount":6,"unpackedSize":21044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdbnvCRA9TVsSAnZWagAA5uUP/2lFf3fBj12TZIH9p5cd\nFbrCDQ6xco9TQ+nOYgUsj4u9w76xF4AeXz0t8AzaNesRTEEpjbdowByFSL/D\nEyYsSVS/iw6u9coiDQG77pLNS7HmgpQhtmzLj4DtM0agqGS8DNUUfNXWZ6Gf\n5mrqqDa2ZeDtqfbi/hSsQRc/aVqm/td/ilrXJOuYKlleMco9eAlKZ/Eggz/F\nR0OgYXAa6hofk/792MwTaUcrHRZT1VKqzmIqOphRan4Fls4bvr/a2KllI3X7\nvIas+aIwtKC++QmCxNEt/+SoyBP3FlZUx0XrCCi5rSsHboHIBrmsNtXWq7o1\nvEnyRvfk0Z6vHGQD25LoRRu4JxyL2hRz2U8X6TX44Ke0pe0HSTcCgKRQqV6/\nVhltwYuwYI3y0SLsJ4LPrXAKkDdmoizVUF3XpNIX5jxLU8BVPv02H5XCqeGl\nfRxq6bLFy7NpUbI4PJMctAkUQe2joIB8Dji6vjKkBTOCHlI4r+LTHj63ezwC\n6/1cFnoq9ti1fisDhWEdCbVLtwDF+OpabBXm8Ocx5dqqyznb1kuexWomr/ke\nN29z6mi+VdGRdyy7umSehsLr6rR3xGIifcNc2yqaKEgryTtVWmCVFQOcgH/R\n3SljUYKTCCw7puU19NEDGmBlFKifdADCtDnQGrLfi8clzW5GkQNafk3in93y\nKVAU\r\n=U4s/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1fjOMbk/Ad6GOn98iLViMY7uPKnYJFQ723p4o+LCO/gIhALICSTjj92vHAYNyVdS4MiVZcPbJCt5fcm7negp7lOCJ"}],"size":6357,"noattachment":false,"key":"/@lerna/run/-/@lerna/run-3.13.1.tgz"},"maintainers":[{"email":"daniel.stockman@gmail.com","name":"evocateur"},{"email":"hi@henryzoo.com","name":"hzoo"}],"_npmUser":{"name":"evocateur","email":"daniel.stockman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run_3.13.1_1551219182703_0.03608037759787597"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1551219182860,"_cnpm_publish_time":1551219182860,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}