Questions tagged [lerna]

Lerna is a tool designed to help develop JavaScript projects in a single git repo containing multiple related npm packages.

The two primary commands in Lerna are lerna bootstrap and lerna publish.

bootstrap will link dependencies in the repo together. publish will help publish any updated packages.

Related links:

644 questions
0
votes
0 answers

unable to build mainframe os development application

I followed the instruction from Mainframe OS Documentation to build code my local, however, when I run npm run dev I am getting following error.
Sri Chatala
  • 177
  • 2
  • 10
0
votes
1 answer

monorepo with vue-cli 3 and lerna

I'm trying to create a monorepo using vue-cli 3 and lerna. I now have two packages: common and app. Both common and app use Vue and import it. common has its main set like this. "main": "dist/common.umd.min.js" When I import common in app, the…
Johannes
  • 1,249
  • 3
  • 17
  • 33
0
votes
1 answer

TS2604: When importing 'material-ui' button from one package to another

My team is implementing a new front-end for our application and has decided to switch from standard react to typescript. I am fairly new at developing and have been stuck on this issue for several days. Essentially we have two repositories, one that…
0
votes
1 answer

Why does lerna run "prepublish" when bootstrapping?

When I run lerna bootstrap, according to the docs: Usage $ lerna bootstrap Bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies. When run, this command will: npm install all…
Nick
  • 11,483
  • 8
  • 41
  • 44
0
votes
1 answer

create scafolding generators like react/open-wc using node

I am trying to create a project structure to my team like how it implemented by open-wc or create-react-app just say npm init @open-wc and it asks couple of questions and creates the folder with specified configurations. I didn't find good articles…
bharath muppa
  • 1,070
  • 12
  • 30
0
votes
1 answer

Lerna issue - Convector project "'.controller.ts' is not under 'rootDir' 'rootDir' is expected to contain all source files"

When a Lerna command fails (calling lerna add lerna bootstrap), the project may break and experience some of the following issues: Project folders erased Compile (tsc) errors like File…
0
votes
1 answer

How to debug Botframework Webchat workspace code?

I have cloned webchat-repo to test something out. And as mentioned in section Testing Web Chat for development purpose I was able to sucessfully start an instance of local webchat. cd packages/playground npm start I guess this starts a local…
Master Chief
  • 2,520
  • 19
  • 28
0
votes
1 answer

Share common React Native components across multiple apps

I'm going to have 2 separate React Apps in a single lerna/yarn workspaces repo which will need to use the same components. What's the best way to reuse these components in multiple application without publishing it to a separate private NPM package?
aiven715
  • 89
  • 1
  • 1
  • 8
0
votes
1 answer

Cannot run tests without sudo on Mac OS X High Sierra

I'm having a very strange issue: Working on a project, which is a monorepo managed with lerna, I am unable to run tests for some reason unless I use sudo. I know it is not a project configuration issue, because no one else on my team is experiencing…
Jonny Asmar
  • 1,900
  • 14
  • 16
0
votes
1 answer

Use local lerna packages as scripts on the root folder

I have several packages inside scripts that used in root. I use npm link scripts/babel-preset which enables me to use the preset in the main babel.config.js and I wonder if this is the right way to do it or I miss the obvious here? root |--…
Jalal
  • 3,308
  • 4
  • 35
  • 43
0
votes
1 answer

Create react app can't use local module with flow types

I created a monorepo which will contain 2 apps created with create-react-app and 1 module with shared components. Right now I have 1 create-react-app and the shared component module. For my project I would like to use Flow. Thus I used flow init in…
Deutro
  • 3,113
  • 4
  • 18
  • 26
0
votes
2 answers

Lerna, React-Redux Web Application debug using Visual code editor debugger for Chrome plugin

I am currently working on Lerna React-Redux project, where multiple packages like one MainApp, and other packages like header, products, cart, shared-components etc. I am using Visual code editor and Chrome debug tool, for debugging when I set a…
0
votes
1 answer

Have babel-loader go through webpack

I have a lerna monorepo, with two packages: marketing-site and button. My marketing-site package uses a webpack config, with the following rules: { test: /\.scss$/, use: [ { loader: 'css-loader', options: { modules:…
Robert Balicki
  • 1,583
  • 2
  • 16
  • 24
0
votes
1 answer

Why Lerna creates a lot of .tgz files at root project ?

I'm using Lerna and when I use lerna publish there is a lot of .tgz files created at root of my project. How preserve theses files to be created ? thanks for any hint. Here my project root directory: 28/09/2018 16:25 99 847 …
Webwoman
  • 10,196
  • 12
  • 43
  • 87
0
votes
0 answers

How to run MEAN stack in docker on local environment?

I'm new to MEAN projects and I have a new project I've successfully cloned and need to get running locally to develop against. I have no idea where to start. It has things like docker, lerna, yarn, etc. How can I get this working on my local dev…
Rod
  • 14,529
  • 31
  • 118
  • 230
1 2 3
42
43