Do you want to request a feature or report a bug?
Improvement.
What is the current behavior?
Right now there’s no way to run a command in all workspaces in parallel, which means that using yarn workspaces run
is very slow. For example, in my current monorepo with 51 workspaces…
With yarn workspaces run clean
:
real 0m23.718s
user 0m20.592s
sys 0m3.210s
With lerna run --parallel clean
:
real 0m3.974s
user 0m19.682s
sys 0m2.900s
That said, it might be implementation-specific slowness too, because with lerna run clean
:
real 0m5.297s
user 0m15.424s
sys 0m2.419s
+1
Yarn 2 was released recently, which supports yarn workspaces foreach –parallel …
For anyone using Yarn Classic™️ , ultra runner has some nice built-in support for workspaces.
Closing as implemented in the v2 (
yarn workspaces foreach --parallel
).https://yarnpkg.com/getting-started/migration