{"bugs":{"url":"https://github.com/lerna/lerna/issues"},"dist":{"shasum":"18bd64b5d0fc4fc300695106fe57a0ebee7d9101","tarball":"https://registry.npmjs.org/@lerna/exec/-/exec-6.5.0-alpha.0.tgz","fileCount":6,"integrity":"sha512-kbYTx90JQaIZjmcSgjg+xydnsTZvnoLjm9Quezf7lN7TBuYv9t/JNj9EMOJ19OBrR52NuqBEp0VR2iU6riVMrA==","signatures":[{"sig":"MEUCIQD4gzuO9CGRWZdOF+Ao6KEV+Ju9coPhxh9M6L6CP4eLiwIgRNr1nQgJtkeKRaWBnkaO9c1zk42jnn72cia9kOgckA4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj13o8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobKBAAoWlwWw9CsZDq1yUcdYHja7fC0vQYrH+xVJ8VmgHw1cHDBqbJ\r\ne0er5Jgwhl1LfanX4gBbD3inmBAy+thJqnQCr5mIyctibsKu55X6jI+HKekz\r\n6ici1qk3LdN5DPiSfZxeKfym6OGBPhEcvmn27NBeDwWANIP6IuYrBFOg3ksF\r\nU8zmeVs9TMu/ONJlExYIziGlNwPuPqS5O+da5jS9AAZUXjAhUGWfbP9xxVXr\r\n7+tirmBQVVWvjtWDLZ9jIEmX6j/4jXoAofbDwcTJtp2eY9KyEgUMayW0nDtB\r\nWacw/jz0n1K2XiScPXij3Ks49WCYe8K7pUOpKEwplEFR0UdrHPoO4uM8sw7F\r\n0c8zXLWHS85YPuCA5921UCYzrgmqlBoPrQMe2Qd9mrbaZzIWoOC9r1JYTtKq\r\n/P9/8yI928VJ17hVA18QK/X/yEBOVBx01aoj6VTKezxvtqk/qge02Oelys7x\r\nV189pGkITyWe8fxKgZQyL2p6NCfSrsGFhrPfbAr0knUlk73he9wQ6in9j7uu\r\nh8dMoOre8Gp7oSn2o855MwutzRkRa2wQRyEQr6mr0AfZGww8D04eQK66AKqv\r\nHvFroeY87RgAh+jlC3XDO94tWqfg7mPtxXZIKcv99/vsa05GwIkoW4YxhJdJ\r\nQtM6iAlhIIG6EJkroh2jfl2y2dFwpIvsZj8=\r\n=IbeS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/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"},"exports":{".":"./dist/index.js","./lib/*":"./dist/lib/*.js","./command":"./dist/command.js"},"gitHead":"624a5459a1d6dbb00628467c42d41c8b432b2408","license":"MIT","_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":"packages/legacy-structure/commands/exec"},"_npmVersion":"lerna/undefined/node@v16.19.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.19.0","dependencies":{"lerna":"6.5.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/exec_6.5.0-alpha.0_1675065916722_0.6411716004549386","host":"s3://npm-registry-packages"},"_id":"@lerna/exec@6.5.0-alpha.0","version":"6.5.0-alpha.0"}