The use case for this is branch building and deployments in Lerna monorepos.  The problem is that Lerna monorepos either hoist dependencies in NPM or use yarn workspaces to the same effect to collect all dependencies in the node_modules folder of the...
I am using yarn for my project. My project has a dependency which happened to be a subpackage of larger monorepo maintained by lerna. The subpackage was updated but not published yet and I need that unpublished code. Is there any way to install lerna...
I have a lerna monorepo containing lots of packages.  I'm trying to achieve the following:   Ensure that VSCode provides the correct import suggestions (based on package names, not on relative paths) from one package to another. Ensure that I can...
I have a lerna repo that contains multiple packages organised in the usual structure:  package.json /packages   - alpha     package.json   - bravo     package.json   - charlie     package.json   I need to transpile all packages, and I currently have...
I have a Lerna project which until recently was using lerna bootstrap --hoist. This worked well but I found the devDependencies in the many sub folders were mostly identical. Upgrading to Lerna v3 I read about lerna link convert.   Does lerna link co...
When packages in a monorepo have peer dependencies, how should these dependencies be made available to them during development?  For example a package at /packages/namespace/alpha/ might have a devDependency of styled-components in its package.json....
I have a project with multiple modules (using Lerna) and I want to use Jest to run tests. However, when I test code that uses a shared module (npm linked module via Lerna) it seems that Babel is not correctly applied and I get the following error:  S...
I am structuring a monorepo that will contain all the single components of a UI kit built with React.  I am using lerna because I have no experience with monorepo/multi packages configuration, now I have this structure:  index.js packages/   pack1/...
In lerna, one can initialize git at the root level of the lerna project and inside the packages folder, we keep our small individual projects. Now suppose, you want to keep the git histories and commits of those packages isolated from each other. Bec...
What is the proper way of working with lerna and local dependencies?    I have configured two modules in a mono repo to use lerna with a local dependency. I expected that  $ lerna bootstrap $ lerna run test   would be sufficient to download all exte...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.