allow running workspaces commands in parallel

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

Author: Fantashit

4 thoughts on “allow running workspaces commands in parallel

Comments are closed.