0.2.0 • Published 4 years ago

yarn-workspaces-foreach v0.2.0

Weekly downloads
465
License
MIT
Repository
github
Last release
4 years ago

yarn-workspaces-foreach

Run a command in each workspace.

const { foreach } = require('yarn-workspaces-foreach');

await foreach('yarn build', { parallel: true, topological: true });
$ workspaces-foreach -pt yarn build

foreach(command, options?)

workspaces-foreach <command...> options

Options:

  • --parallel / -p run commands in parallel
  • --topological / -t run commands ordered by dependency graph
  • --jobs <count> / -j <count> number of parallel jobs to run
  • --include workspaces to include
  • --exclude workspaces to exclude