lerna Questions

4

I have a lerna repo for a project under development. It has several packages that depend on each other. To make development easier, none of the packages are published and they depend on the latest ...
Edentate asked 28/2, 2018 at 20:28

4

Solved

I maintain a lerna/yarn monorepo. I'm in the process of migrating the CI/CD from circle to the new GitHuba Actions publish beta. I've created the following workflow: name: CD on: push: branches...
Stretto asked 21/8, 2019 at 18:28

0

I have two different repos I'm working on, lib and apps. lib has some React components made with MUI that I want to consume in apps, and that's built with Rollup. apps is a Lerna monorepo with a ...
Shawanda asked 14/1, 2022 at 12:23

3

I am using lerna to manage my mono repo. I'd like to run a command in parallel towards a set of packages. I tried the following but can't get it working: lerna run start --parallel packages1 pac...
Divaricate asked 6/10, 2017 at 11:4

2

Solved

I have the following root package.json: { "name": "project", "private": true, "workspaces": [ "packages/*" ], "scripts": { "b...
Menology asked 4/7, 2020 at 13:0

2

I'm trying to configure Storybook to run from a directory that is not the root of the project and I'm having a little trouble. I've setup a mono-rep using https://github.com/jibin2706/cra-monorepo-...
Cahilly asked 13/8, 2021 at 15:46

1

Solved

I have a monorepo which I'm managing with yarn workspaces + lerna. From what I understand, running yarn should create a node_modules directory at the root of the project but not in each individual ...
Suppliant asked 1/5, 2020 at 22:36

3

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 colle...
Rosary asked 13/12, 2019 at 10:12

1

Solved

I've been trying to find a clear answer to this problem, but unfortunately I haven't been able to. There are two similar SO questions that touch on this subject, Should a developer be able to creat...
Rockafellow asked 30/3, 2021 at 23:7

1

When I call lerna version 1.0.0 it bumps the versions to 1.0.0 for every package that has changed in the /packages dir. Additionally, I'd like to bump the version of the root package.json. I'm bas...
Libation asked 18/9, 2019 at 23:50

5

I'm trying to set up my monorepo with Lerna. The plan is to refactor an existing project by pulling chunks of code out which should be their own packages. I've run lerna init, and my current setup ...
Heder asked 12/6, 2017 at 4:40

2

I am using lerna and yarn workspaces in my monorepo. The package structure looks like this: root `--- packages |--- pkg1 | |--- src | | `--- index.ts | `--- dist | `--- index.js `--- pkg2 |...
Babysitter asked 7/5, 2020 at 23:20

1

I have a repository with a bunch of different front-end React projects, which all have package.json files of their own. I have four requrements: I want to keep all of these projects on the same de...
Letterpress asked 20/6, 2021 at 19:18

3

Solved

In my monorepo, I have 3 packages package1, package2, package3, each package contains a npm script named build. However, these packages are not linked together. I.e. there are no require() in any ...
Rother asked 8/6, 2018 at 23:21

1

Solved

I'm using lerna in combination with yarn workspaces. In that case, all the package hoisting and symlinking is handled by yarn workspaces. In that particular case, what's the role of the lerna boots...
Naturism asked 22/6, 2021 at 9:57

0

I'm trying to create a monorepo with these packages: a web app created using create-react-app a gatsby site a library of components etc. that the web app and gatsby app will share (which is my mai...
Pugnacious asked 16/5, 2021 at 15:32

1

In our projects we have multiple monorepos used across whole company. The problem is, that we have for example monorepo-A and monorepo-B and monorepo-B uses components from monorepo-A (this is unch...
Walkover asked 11/4, 2021 at 10:6

1

Solved

hello i'm in new in monorepos world and i'm now searching about different monorepos tools and i found two intersting tools Nx(nrwl) and lerna but i didn't understand the real differnce between thes...
Faliscan asked 8/4, 2021 at 8:48

9

Solved

I am trying to install lerna using npm , packages are successfully added but when I run any command of lerna it comes out as. bash: lerna: command not found Node Version : v8.10.0 Npm Version...
Terbia asked 25/5, 2018 at 5:41

1

Solved

Setup I have several gitlab repos where the general setup involves having a master branch, a stage (pre-release) branch and a dev branch. Push permissions are disabled for all 3 branches. The workf...
Elvinaelvira asked 1/4, 2021 at 15:10

3

Solved

I am trying to run a basic Nuxt app with an external Vue component built using vue-cli inside a lerna monorepo. The page briefly shows component content (server rendered) and then it disappears th...
Galacto asked 30/1, 2020 at 20:27

0

We are using lerna to manage a monorepo and we want to automate the publishing process: The developer makes changes in one of the packages in the monorepo The CI detects that changes have been mad...
Mannequin asked 1/3, 2021 at 7:27

1

Solved

I have a lerna + yarn workspaces monorepo, with independent versioning. I'm having trouble importing a package in its sibling. I have two packages, one of which should depend on the other, as illus...
Sybil asked 6/2, 2021 at 19:44

2

I have three packages: A, depends on C B, depends on C C When using lerna run build, C builds before A and B (good!) But when I start a watch task lerna run watch, C never completes and therefor ...
Arius asked 26/1, 2021 at 21:0

1

I've got the following scripts in my root package.json in my lerna repo: "scripts": { "lerna:changed": "npx lerna changed", "lerna:diff": "npx lerna d...
Nightly asked 18/9, 2019 at 1:16

© 2022 - 2024 — McMap. All rights reserved.