yarn workspaces foreach
npm install yarn-workspaces-foreachRun a command in each workspace.
``js
const { foreach } = require('yarn-workspaces-foreach');
await foreach('yarn build', { parallel: true, topological: true });
`
``
$ workspaces-foreach -pt yarn build
Options:
- --parallel / -p run commands in parallel--topological
- / -t run commands ordered by dependency graph--jobs
- / -j number of parallel jobs to run--include
- workspaces to include--exclude` workspaces to exclude
-