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 the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?