Clarification on using Lerna for package management

2 replies
Last updated: Apr 24, 2020
does
lerna run build --parallel
run
npm i
in each submodule directory before it tries to build?
Apr 24, 2020, 5:41 PM
Hi
user M
! Lerna can be challenging sometimes.

lerna run build
will only run
npm run build
in every package, and will not install any dependencies for you. You're probably looking for
lerna bootstrap
, which will run
npm install
in every package.
Apr 24, 2020, 6:10 PM
Cheers πŸ™‚
I feel like the build that comes with the sapper starter is lacking the bootstrap step, I've added it to the main package.json so I'll let you know how I fare
Apr 24, 2020, 11:40 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?