๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup

Clarification on using Lerna for package management

2 replies
Last updated: Apr 24, 2020
lerna run build --parallel
npm i
in each submodule directory before it tries to build?
Apr 24, 2020, 5:41 PM
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?