In my monorepo, I have 3 packages package1
, package2
, package3
, each package contains a npm script named build
.
However, these packages are not linked together. I.e. there are no require()
in any of those packages linking to a sibling package.
From the root folder, I run lerna run build
. It seems to run build
of the packages in the alphabetically order.
Is there a way to specify the order to run the build
commands of these packages?
--sort
won't work because they are not linked.