{"bugs":{"url":"https://github.com/lerna/lerna/issues"},"dist":{"shasum":"ddff1d35dd446a453a19b59c27cd311d58abe366","tarball":"https://registry.npmjs.org/@lerna/exec/-/exec-6.0.0-alpha.2.tgz","fileCount":5,"integrity":"sha512-8YYGDA8bMJOD3BHg7GfWG+rOUlRropyZjqbP8yMTdbSmuDh2ErC9sLS37IVA8k8j2XhAnb3CVbAXzmad1b0d1Q==","signatures":[{"sig":"MEQCICKbnbylfj7AQt5yOapkzOhRgBB56KHjO1HUi0rlCdTXAiAN3/FZ45knT94MvV53UmvIOFKQ4P/SlUoR8lmHTcraww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRut3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdHBAAgGjF635uSL5w4p9o28nutxqyAyNqpAQj7S+IlImAPBCcUA8N\r\ndoy0/yUOBwMiYCE6X+WNA/su2XRofC7iUXKXbIIrwPSPcMdivWqapieCj75l\r\nEh7vBv9AmBOnra8siQrSbqeXx1NNx1ti2MQEjC9vPSKnVS8vrR/SnkBaz4wg\r\nexz6FOaAs9fQFzJ/ULg2XDzANlCO0+AZSMLesXCxbxQAak265RN6hQG+wUEJ\r\nrV1KY3ck6vKw0uaFD234RkTv24gsC3DE8TFzwMiuZzsR/K4I6wqr/Va0nsTO\r\n306gdgrAr8jEM7EBCBI+PPjPmC67N3yDuuXyyOz5+UTNJ5oLtjUvqbygZCsl\r\nKICeZw2dFw0ZAiTtvA0ssHDwWX6+3DkFYGHw4U28r+iM0q0AWOrfsiSX/giN\r\nbI6t8IRM+Fjkm8ZEnWwD29gvrvVI2gf7ZH/WUuYxHrPifCprAoAT8MJI8cV8\r\nQNk2EyuTPgHbpctGoJlAmBVJZUrFgpNbZvj3zkOS9cTcOeh5fC39QciOIiXH\r\nH+TJYnwUF8E6TsnUlsEik2evtD0lbfTr8glrQepNlDAhUk484TQu+x3f13Ic\r\nEC23ONtVIA3P1yJrbWkN3NJIqRVgf1IN+o4IB9NbLQIk8nKOHcUh61NhDjN1\r\naMCrVfBkRRVc3QLWomZ8gNtodWyCtG9pMjU=\r\n=xl2v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@lerna/exec","author":{"url":"https://github.com/evocateur","name":"Daniel Stockman"},"readme":"# `@lerna/exec`\n\n> Execute an arbitrary command in each package\n\nInstall [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.\n\n## Usage\n\n```sh\n$ lerna exec -- <command> [..args] # runs the command in all packages\n$ lerna exec -- rm -rf ./node_modules\n$ lerna exec -- protractor conf.js\n```\n\nRun an arbitrary command in each package.\nA double-dash (`--`) is necessary to pass dashed flags to the spawned command, but is not necessary when all the arguments are positional.\n\nThe name of the current package is available through the environment variable `LERNA_PACKAGE_NAME`:\n\n```sh\n$ lerna exec -- npm view \\$LERNA_PACKAGE_NAME\n```\n\nYou may also run a script located in the root dir, in a complicated dir structure through the environment variable `LERNA_ROOT_PATH`:\n\n```sh\n$ lerna exec -- node \\$LERNA_ROOT_PATH/scripts/some-script.js\n```\n\n## Options\n\n`lerna exec` accepts all [filter flags](https://www.npmjs.com/package/@lerna/filter-options).\n\n```sh\n$ lerna exec --scope my-component -- ls -la\n```\n\n> The commands are spawned in parallel, using the concurrency given (except with `--parallel`).\n> The output is piped through, so not deterministic.\n> If you want to run the command in one package after another, use it like this:\n\n```sh\n$ lerna exec --concurrency 1 -- ls -la\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 exec --stream -- babel src -d lib\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 `babel src -d lib -w` run over many packages.\n\n```sh\n$ lerna exec --parallel -- babel src -d lib -w\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 a command, ignoring non-zero (error) exit codes\n$ lerna exec --no-bail <command>\n```\n\nBy default, `lerna exec` will exit with an error if _any_ execution returns a non-zero exit code.\nPass `--no-bail` to disable this behavior, executing in _all_ packages 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\n### `--profile`\n\nProfiles the command executions and produces a performance profile which can be analyzed using DevTools in a\nChromium-based browser (direct url: `devtools://devtools/bundled/devtools_app.html`). The profile shows a timeline of\nthe command executions where each execution is assigned to an open slot. The number of slots is determined by the\n`--concurrency` option and the number of open slots is determined by `--concurrency` minus the number of ongoing\noperations. The end result is a visualization of the parallel execution of your commands.\n\nThe default location of the performance profile output is at the root of your project.\n\n```sh\n$ lerna exec --profile -- <command>\n```\n\n> **Note:** Lerna will only profile when topological sorting is enabled (i.e. without `--parallel` and `--no-sort`).\n\n### `--profile-location <location>`\n\nYou can provide a custom location for the performance profile output. The path provided will be resolved relative to the current working directory.\n\n```sh\n$ lerna exec --profile --profile-location=logs/profile/ -- <command>\n```\n","engines":{"node":"^14.15.0 || >=16.0.0"},"gitHead":"154b93901308cbfd6b803e1f199e9b6d2e362b6f","license":"MIT","scripts":{"test":"echo \"Run tests from root\" && exit 1"},"_npmUser":{"name":"jameshenry","email":"npm@jameshenry.email"},"homepage":"https://lerna.js.org","keywords":["lerna","command"],"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/lerna/lerna.git","type":"git","directory":"commands/exec"},"_npmVersion":"lerna/6.0.0-alpha.2/node@v16.15.0+arm64 (darwin)","description":"Execute an arbitrary command in each package","directories":{},"maintainers":[{"name":"jameshenry","email":"npm@jameshenry.email"},{"name":"nrwlowner","email":"hello@nrwl.io"}],"_nodeVersion":"16.15.0","dependencies":{"p-map":"^4.0.0","@lerna/command":"6.0.0-alpha.2","@lerna/profiler":"6.0.0-alpha.2","@lerna/child-process":"6.0.0-alpha.2","@lerna/filter-options":"6.0.0-alpha.2","@lerna/validation-error":"6.0.0-alpha.2","@lerna/run-topologically":"6.0.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/exec_6.0.0-alpha.2_1665592183436_0.3554963736763037","host":"s3://npm-registry-packages"},"_id":"@lerna/exec@6.0.0-alpha.2","version":"6.0.0-alpha.2"}