Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to execute lerna run --parallel on a set of packages

Tags:

node.js

lerna

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.

like image 591
alexmngn Avatar asked Jan 29 '23 11:01

alexmngn


1 Answers

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.

like image 164
Noah Avatar answered Feb 02 '23 01:02

Noah