{"_id":"workspaces-run","_rev":"3-dbb8ce4bf71cbb812824ffac7e396ce7","name":"workspaces-run","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"workspaces-run","version":"1.0.0","description":"Run tasks/scripts across Yarn/Lerna/Bolt/etc workspaces.","main":"dist/lib.js","bin":{"workspaces-run":"dist/cli.js"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/workspaces-run.git"},"license":"MIT","keywords":["workspaces","bolt","yarn","lerna","npm","run","exec","eval","execute","parallel","graph","task","script"],"scripts":{"check:typescript":"tsc --noEmit","check:prettier":"prettier --check '**'","build":"rm -rf dist && tsc","format":"prettier --write '**'","test":"ava","prepublishOnly":"npm run -s build"},"dependencies":{"aggregate-error":"^3.0.1","chalk":"^3.0.0","chunkd":"^2.0.1","cross-spawn":"^7.0.1","get-workspaces":"^0.5.2","meow":"^6.0.0","micromatch":"^4.0.2","p-limit":"^2.2.1","physical-cpu-count":"^2.0.0","redent":"^3.0.0","semver":"^7.1.1","signal-exit":"^3.0.2","task-graph-runner":"^1.0.3","trim-newlines":"^3.0.0","wrapline":"^2.0.1"},"devDependencies":{"@types/cross-spawn":"^6.0.1","@types/micromatch":"^3.1.1","@types/semver":"^6.2.0","@types/signal-exit":"^3.0.0","ava":"^2.4.0","husky":"^3.1.0","lint-staged":"^9.5.0","prettier":"^1.19.1","ts-node":"^8.5.4","typescript":"^3.7.4"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":["prettier --write","git add"]},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register/transpile-only"]},"gitHead":"2dd1ccc7f31235060536117f58d3e859326d84c1","bugs":{"url":"https://github.com/jamiebuilds/workspaces-run/issues"},"homepage":"https://github.com/jamiebuilds/workspaces-run#readme","_id":"workspaces-run@1.0.0","_nodeVersion":"12.9.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-avW5c/vYLx4CIFUa7PjqsQzmHiRGy2G9g4h6e0EoWJ5Xf2k9iHPEL0nbXyfO+qkauWkCJ8Y4olRcR5WMgmCZFQ==","shasum":"16ffae5e2fb3d2c16aad7d2d94f54e384074cd67","tarball":"https://registry.npmjs.org/workspaces-run/-/workspaces-run-1.0.0.tgz","fileCount":27,"unpackedSize":43368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE8bxCRA9TVsSAnZWagAAGPAQAIQczIpHZnh/sNPy9tr6\naAyVIOJbzyt4qW1Pf5Wkp+ZKPOmETrVhDoFQkcW956CA+gUMWwOrYEcZxf1x\neWQczM0Zdj6ZBL+ySbqqpDQ1qt14zlkqb2pZLBhLyte3/nqiKW1lBtX6+qUr\neSKeKR3ExxPvaEC5j1mH3qb4iV/TaEv1213UNs2MJ07wtcHggU8ofZQ4hNxf\nnxbg2q+DcGAxk6ZlwZD7zoGo4QFnThb1+nkNcLizNW06u1iEUnoi4oXauIgn\n/r4vdgxZPeU/Q3GaA0w1A2+4om5JfNiD4ncN/3hwi9qzmjyGhiGWHWG+wv+r\nqIA2NvVfLjw0y5fqvVmb8F3EzpaJzeioiTnl8FGN0nBu0K7koO2XMCQB/nDC\nCZ1J3/QjfkojumtIQyb0UwmTDK5/ph7DbI6YVLV5QwZsz5+N0NQDo8H8Rc2K\nP84t/IrM1b1NU0wXuJQkK/IO7ebF4c0TqGDBckvbnF7ZtyyBeQWbr3V29TJU\n7MgzmVwYilq/FL2F0RIHzx8o1G0vIrhiBs/G7o0k+9MNJ06NXx6MDRR6V5+T\n5j68KyaL43lYz3p24N1Xn8A00MnweDiY9aCoO5PSsdnz+M/iYWJ5AlW7Tu+v\nQYUeP2Xj6xot3GpyDqjEVv5iW4+q3iIfWjrXOFTdyCIQGhdM1d98hvTEeKII\nNJwx\r\n=apSi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjI8IjsI7I++f1xwwT1gZavh9j3IRWgQywbTMyaikbEQIhAJz4nXzn+KgwlBm/VJ8MwG1cFiGEGC+WL1SBo414ceW5"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/workspaces-run_1.0.0_1578354416925_0.725424869896441"},"_hasShrinkwrap":false},"1.0.1":{"name":"workspaces-run","version":"1.0.1","description":"Run tasks/scripts across Yarn/Lerna/Bolt/etc workspaces.","main":"dist/lib.js","bin":{"workspaces-run":"bin.js"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/workspaces-run.git"},"license":"MIT","keywords":["workspaces","bolt","yarn","lerna","npm","run","exec","eval","execute","parallel","graph","task","script"],"scripts":{"check:typescript":"tsc --noEmit","check:prettier":"prettier --check '**'","build":"rm -rf dist && tsc","format":"prettier --write '**'","test":"ava","prepublishOnly":"npm run -s build"},"dependencies":{"aggregate-error":"^3.0.1","chalk":"^3.0.0","chunkd":"^2.0.1","cross-spawn":"^7.0.1","get-workspaces":"^0.5.2","meow":"^6.0.0","micromatch":"^4.0.2","p-limit":"^2.2.1","physical-cpu-count":"^2.0.0","redent":"^3.0.0","semver":"^7.1.1","signal-exit":"^3.0.2","task-graph-runner":"^1.0.3","trim-newlines":"^3.0.0","wrapline":"^2.0.1"},"devDependencies":{"@types/cross-spawn":"^6.0.1","@types/micromatch":"^3.1.1","@types/semver":"^6.2.0","@types/signal-exit":"^3.0.0","ava":"^2.4.0","husky":"^3.1.0","lint-staged":"^9.5.0","prettier":"^1.19.1","ts-node":"^8.5.4","typescript":"^3.7.4"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":["prettier --write","git add"]},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register/transpile-only"]},"gitHead":"c3fa2d215a247a41946f579671ded5687f58f445","bugs":{"url":"https://github.com/jamiebuilds/workspaces-run/issues"},"homepage":"https://github.com/jamiebuilds/workspaces-run#readme","_id":"workspaces-run@1.0.1","_nodeVersion":"12.9.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-B7tZj/g4/1JCeNQ7+zVNVBC83hOJBKpOm/yYob3eqw0Aerp1Guecfdf0J6kO/I/EyA2X2uP1oCHWsh2QywXh0A==","shasum":"dace5df0d45f8770316d254e0cfe7a6c1a3df437","tarball":"https://registry.npmjs.org/workspaces-run/-/workspaces-run-1.0.1.tgz","fileCount":28,"unpackedSize":43636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE8dUCRA9TVsSAnZWagAA+FsQAJHBn4cu2MXowqECZPU4\nyFjh8kvGNGp484emIaY53ojM3HJ7e8zloEklcrPSHm/TNJY7XVrFT1blc/uU\n/7au71WSlcDRu5aVYTBKkSacJWf9ANPlE5rPjgojMkoqjiHzz+U/tevhOSAk\nrJ/u6+P5QzXDlmdn+IewCCzqZzlERk6d6ffADDImlLtPf5LpW0XqUDTUseDv\nTCYAL4G8YDsHbpJMOod/u2Dp5crigytNmtrcrTjGyi8q83xeOjqDefxZcQB4\nyavjS7XBTkd2PA7Zw2UvAs1MRZ4YIG5bkmkq5oiOMKNs8sU9UBUInf5heANT\nifRCeIHw+NbCBDrFx6WivQrVKC0BzaQ3tsldbB0m1QAj4XdBcHzNYdokIRIg\n/MkH3hk61VQPbTkIGBY0dz2w22f+1tdbXDQHocHMzPaNqyyTpWPI/ED78KkI\nAUGS48AO9esjEPohtpSc/5iF67ODaEs3LXG3zjoqpRUWnksoh7zMF70BlG+h\nmljflvyPFniENBxNhAD7HmklO2RMDTtxgLThB/GWXThjy9NdHV5irsRyA1mF\nsjk0b/4GFRarH9NkN3xW9gIeQah5hq4i1Nrw0HeClgBd8kGvNKLlpiI8O1+x\nUSsOEOzgz4mrj3ehyQLcWWtFBCNoaf2a2uo3MMOPwFKL3JcOnnKb8anvbI/O\n59yE\r\n=dNsd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7KaFpXuhKzkgBdzxjpfr524uEiEcHqUKOpWVK43HGTgIhAKge1/hab3vUjzrtRbNWda6bJEvoT22pLDanMx197WZE"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/workspaces-run_1.0.1_1578354515521_0.7180299741286409"},"_hasShrinkwrap":false},"1.0.2":{"name":"workspaces-run","version":"1.0.2","description":"Run tasks/scripts across Yarn/Lerna/Bolt/etc workspaces.","main":"dist/lib.js","bin":{"workspaces-run":"bin.js"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/workspaces-run.git"},"license":"MIT","keywords":["workspaces","bolt","yarn","lerna","npm","run","exec","eval","execute","parallel","graph","task","script"],"scripts":{"check:typescript":"tsc --noEmit","check:prettier":"prettier --check '**'","build":"rm -rf dist && tsc","format":"prettier --write '**'","test":"ava","prepublishOnly":"npm run -s build"},"dependencies":{"aggregate-error":"^3.0.1","chalk":"^3.0.0","chunkd":"^2.0.1","cross-spawn":"^7.0.1","get-workspaces":"^0.5.2","meow":"^6.0.0","micromatch":"^4.0.2","p-limit":"^2.2.1","physical-cpu-count":"^2.0.0","redent":"^3.0.0","semver":"^7.1.1","signal-exit":"^3.0.2","task-graph-runner":"^1.0.3","trim-newlines":"^3.0.0","wrapline":"^2.0.1"},"devDependencies":{"@types/cross-spawn":"^6.0.1","@types/micromatch":"^3.1.1","@types/semver":"^6.2.0","@types/signal-exit":"^3.0.0","ava":"^2.4.0","husky":"^3.1.0","lint-staged":"^9.5.0","prettier":"^1.19.1","ts-node":"^8.5.4","typescript":"^3.7.4"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*":["prettier --write","git add"]},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register/transpile-only"]},"types":"./dist/lib.d.ts","gitHead":"1e8266fc228ad6f76f6a5c85714b75f6aa4b806f","bugs":{"url":"https://github.com/jamiebuilds/workspaces-run/issues"},"homepage":"https://github.com/jamiebuilds/workspaces-run#readme","_id":"workspaces-run@1.0.2","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-VJO+ZcefRGjH81hxGOpS/bpelW+l6PfjUlA8cqtSq/hbIlTC+oG9TWUJTo1xKIyRSg/W+Snu2g9V0lyWGbpCgw==","shasum":"2a94300aaa03f76eaa52e888ff1d679a889b776b","tarball":"https://registry.npmjs.org/workspaces-run/-/workspaces-run-1.0.2.tgz","fileCount":28,"unpackedSize":45193,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBS5TKgxtLUODpRtriOWl3/8EUi4+37esEHAQqmJDXKhAiB4AQMHScxhfG0M2KOOXul2N1/ydbcK4xEyeTDwNBRZZw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7UD0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozIg/8C4ItkXWv5JweNMUebtG/fDByn5D3Kc0n63sAke/hyn1yZaEn\r\nx7vuKpuFQIf0VKYD/mX3lTcOTls0WzpICUj1A0sApwShjcT1UuZnlj7KI+2a\r\nrdbIc0M7TewJgRzUY5NxSqow75pRm9vpouTr8qMePkDgBpr26j5ysrdbUuAU\r\nbMRAv0jrB1CSklS7+r51HM7foX4cdhhnhsfMKZqj0KyHLcGbccYcbCr6x10b\r\nepqs9EoW4nS79ZrAovoPbPuXQEws11he5/DOguz0Tij2uTAQwfkH+tJnWEpy\r\n4PJNDqLIqqqu5AQk6iVw9GIdcelu4cT/8dF3POFBDCqM3Iy2AyfpKfjxlnQ9\r\nqikzOIC4s281dD2zbIYimtMtkhFwqPS3z0h29EOfbwku+PW2oN93mVD6yEWL\r\nxkx/B9GVGChYxEwTO/u0SKMhnhreXJa6rR7AVbz00AU07gOtdNKFLSmFpgf8\r\nmYeTmZl1LMrGSuQPSr2WJcintMFQ0lHFDaZ7G9TaEEmPsiXlPOIXZlfmaX7j\r\nWyB+TzFtikTaGyQe6zn7AhOP24d9wyF763nVhTLZPcroaFuHqckPM1ZkGMeJ\r\nwIpekPxeLOsRMBQdDz4KyLWhBVXGuV1yAo/Fve+6S5rG8HMboCiYwG8LYj7w\r\nx0JWoR7PsTHtciuDTAFrwHcHPZhKiI+pxOA=\r\n=KZRr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/workspaces-run_1.0.2_1676493044496_0.3844985770146001"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-06T23:46:56.924Z","1.0.0":"2020-01-06T23:46:57.040Z","modified":"2023-02-15T20:30:44.808Z","1.0.1":"2020-01-06T23:48:35.722Z","1.0.2":"2023-02-15T20:30:44.690Z"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"description":"Run tasks/scripts across Yarn/Lerna/Bolt/etc workspaces.","homepage":"https://github.com/jamiebuilds/workspaces-run#readme","keywords":["workspaces","bolt","yarn","lerna","npm","run","exec","eval","execute","parallel","graph","task","script"],"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/workspaces-run.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"bugs":{"url":"https://github.com/jamiebuilds/workspaces-run/issues"},"license":"MIT","readme":"# `workspaces-run`\n\n> Run tasks/scripts across Yarn/Lerna/Bolt/etc workspaces.\n\n## Install\n\n```sh\nnpm install workspaces-run\n```\n\n## CLI\n\nRun a command across every workspace:\n\n```sh\n$ workspaces-run -- echo \"hello world\"\n@project/workspace-one   | hello-world\n@project/workspace-two   | hello-world\n@project/workspace-three | hello-world\n```\n\n### `--parallel`\n\n```sh\n$ workspaces-run --parallel -- script.sh\n@project/workspace-one   | working...\n@project/workspace-two   | working...\n@project/workspace-three | working...\n@project/workspace-one   | done.\n@project/workspace-two   | done.\n@project/workspace-three | done.\n```\n\n#### `--parallel=physical-cores`\n\n```sh\n# On a machine with 2 physical cores\n$ workspaces-run --parallel=physical-cores -- script.sh\n@project/workspace-one   | working...\n@project/workspace-two   | working...\n@project/workspace-one   | done.\n@project/workspace-three | working...\n@project/workspace-two   | done.\n@project/workspace-three | done.\n```\n\n#### `--parallel=<number>`\n\n```sh\n$ workspaces-run --parallel=2 -- script.sh\n@project/workspace-one   | working...\n@project/workspace-two   | working...\n@project/workspace-one   | done.\n@project/workspace-three | working...\n@project/workspace-two   | done.\n@project/workspace-three | done.\n```\n\n### `--order-by-deps`\n\n```sh\n# When \"one\" and \"two\" depend on \"three\"\n$ workspaces-run --order-by-deps -- script.sh\n@project/workspace-three | working...\n@project/workspace-three | done.\n@project/workspace-one   | working...\n@project/workspace-one   | done.\n@project/workspace-two   | working...\n@project/workspace-two   | done.\n```\n\n#### `--order-by-deps=<dependencyType>`\n\n```sh\n# When \"three\" is in \"devDependencies\" of \"one\" but in \"peerDependencies\" of \"two\"\n$ workspaces-run --order-by-deps=devDependencies -- script.sh\n@project/workspace-two   | working...\n@project/workspace-two   | done.\n@project/workspace-three | working...\n@project/workspace-three | done.\n@project/workspace-one   | working...\n@project/workspace-one   | done.\n```\n\n### `--continue-on-error`\n\n```sh\n$ workspaces-run --continue-on-error -- script.sh\n@project/workspace-one   | working...\n@project/workspace-one   | Error!\n@project/workspace-two   | working...\n@project/workspace-two   | Error!\n@project/workspace-three | working...\n@project/workspace-three | done.\n```\n\n### `--no-prefix`\n\n```sh\n$ workspaces-run --no-prefix -- script.sh\nworking...\ndone.\nworking...\ndone.\nworking...\ndone.\n```\n\n### CLI Filtering\n\nThe task will be run on a workspace if **_all_** of the conditions are true.\n\n- When **_any_** of the `--only` patterns match the workspace `package.json#name`; _and_\n- When **_any_** of the `--only-fs` patterns match the workspace directory; _and_\n- When **_all_** of the `--ignore` patterns do _not_ match the workspace `package.json#name`; _and_\n- When **_all_** of the `--ignore-fs` patterns do _not_ match the workspace directory.\n\nPatterns support any syntax available in [micromatch](https://github.com/micromatch/micromatch#matching-features):\n\n```sh\nworkspaces-run --only-fs=\"**/path/to/dir/**\"\nworkspaces-run --only=\"workspace-{one,two}\"\n```\n\nFlags can be specified multiple times:\n\n```sh\nworkspaces-run --only=<pattern> --only=<patern>\n```\n\nThe flags `--only-fs` and `--ignore-fs` match against a relative path to the\ncurrent working directory.\n\n## Library\n\n```js\nimport workspacesRun from \"workspaces-run\"\n\nawait workspacesRun({ cwd }, async (workspace, allWorkspaces) => {\n  await doSomething(workspace)\n})\n```\n\n### `opts.cwd` (Required)\n\n```js\nlet cwd = process.cwd()\n\nawait workspacesRun({ cwd }, ...)\n```\n\n### `opts.parallel`\n\n```js\nawait workspacesRun({ cwd, parallel: true }, ...)\nawait workspacesRun({ cwd, parallel: \"physical-cores\" }, ...)\nawait workspacesRun({ cwd, parallel: 3 }, ...)\n```\n\n### `opts.orderByDeps`\n\n```js\nawait workspacesRun({ cwd, orderByDeps: true }, ...)\nawait workspacesRun({ cwd, orderByDeps: [\"devDependencies\"] }, ...)\n```\n\n### `opts.continueOnError`\n\n```js\nawait workspacesRun({ cwd, continueOnError: true }, ...)\n```\n\n### Library Filtering\n\nThe task will be run on a workspace if **_all_** of the conditions are true.\n\n- When **_any_** of the `only` patterns match the workspace `package.json#name`; _and_\n- When **_any_** of the `onlyFs` patterns match the workspace directory; _and_\n- When **_all_** of the `ignore` patterns do _not_ match the workspace `package.json#name`; _and_\n- When **_all_** of the `ignoreFs` patterns do _not_ match the workspace directory.\n\nPatterns support any syntax available in [micromatch](https://github.com/micromatch/micromatch#matching-features):\n\n```js\nawait workspacesRun({\n  cwd,\n  only: [\"workspace-{one,two}\"],\n  onlyFs: [\"**/path/to/dir/**\"],\n}, ...)\n```\n\nThe options `onlyFs` and `ignoreFs` match against a relative path to the `cwd`.\n","readmeFilename":"README.md"}