🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

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?

Related answers

Get more help in the community Slack

TopicCategoriesFeaturedRepliesLast Updated
Rendering nested block contentJan 18, 2021
GraphQL query resolving references on a _raw field in GatsbyMay 17, 2022
Error: unable to resolve image URL from source (undefined)Sep 11, 2022
Extracting referenced images from an object array in Sanity.ioMay 17, 2020
How to preview content inside a reference array in Sanity.ioAug 14, 2020
Hi, I need help with Iframe preview, I have a `route` schema with unique `slug` (`/lb/123`) and also I have `page` schema...Dec 21, 2020
Hi! How to add a doc via sanity client that has a *weak* reference? If I do this, it throws an error `key "weak" not allowed...Feb 2, 2021
How come images are returning with just a _ref in their assets?Feb 3, 2021
Troubleshooting reference fields in a Next.js Landing page templateMay 2, 2020
Query for finding un-referenced documents in Sanity.ioMay 10, 2020

Related contributions

Turbo Start Sanity
- Template

The battle-tested Sanity template that powers Roboto Studio's websites

Go to Turbo Start Sanity

Schema UI - Next.js Sanity Starter
- Template

A Next.js starter template with Next.js 15, Tailwind CSS, shadcn/ui, and Sanity CMS with Live Editing. Get production-ready React components with matching Sanity schemas and queries. Build dynamic pages faster while keeping full control over customization.

Serge Ovcharenko
Go to Schema UI - Next.js Sanity Starter

The Swaddle
- Made with Sanity

A new brand identity to represent a more mature company, to signify The Swaddle’s evolution from publisher to production house, combined with an easier to navigate platform that can surface multiple content types - drawing readers through The Swaddle’s content offering.

Nightjar
Go to The Swaddle