I am using lerna to manage my mono repo.
I'd like to run a command in parallel towards a set of packages.
I tried the following but can't get it working:
lerna run start --parallel packages1 packages2
lerna run start --parallel --scope packages1 packages2
lerna run start --scope "packages1 packages2" --parallel
It doesn't execute "run start" on my scope but on all the packages I have.
What is the right syntax to define the scope? Couldn't find anything in the documentation for that.
Thanks.
lerna run start --parallel --scope packages1 --scope packages2
should work.
According to their docs,
lerna run start --parallel --scope packages*
should also work, assuming you don't have a packages3 and packages4 that you don't want to run.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With