Skip to main content
11 votes
2 answers
5k views

Lerna with watch tasks - lerna run --parallel

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 A ...
0 votes
0 answers
63 views

Webpack not honouring the main field in package.json

I have a monorepo that uses Lerna to connect the packages. One of the packages in this repo is a utility package (compiled using tsc), whilst the other package in the monorepo is the main web ...
5 votes
1 answer
16k views

Docker builds for a monorepo environment

Basically, both services foo and bar depend on a common library. Let's assume that the common package has already been published to the npm registry. | ├── packages | ├── common | | ├── src | ...
1 vote
2 answers
995 views

Lerna return lerna success run No packages found with the lifecycle script 'build'

when i try to run lerna run build --stream it runs a long time and fails with lerna success run No packages found with the lifecycle script 'build'. The repository was up to date and i have 0 changes ...
0 votes
0 answers
51 views

lerna publish --canary detect incorrect version

I maintain a mono repositories with lerna. About branches, master to emit the product version, and beta to keep the prerelease version. I usually checkout new feature branch, do some commits and merge ...
30 votes
8 answers
65k views

Building Typescript: [!] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)

I've encountered problem building typescript packages with rollup inside lerna managed monorepo. Error: lerna ERR! rollup --config ../../rollup.config.js stderr: loaded ../../rollup.config.js with ...
0 votes
0 answers
44 views

GitHub workflow breaks when Lerna publishes with auto

I’m using the following workflow: name: Release on: [push, workflow_dispatch] jobs: release: name: Release runs-on: ubuntu-latest permissions: contents: read issues: read ...
1 vote
1 answer
339 views

Why lerna version assuming all packages changed?

I use GitHub Action to publish my own package, and I made some changes in @mosiure/pkgA. However,I found that lerna version will handle all my packages, even though I never made change in those ...
11 votes
2 answers
10k views

How do I update all subfolder package.json in a monorepo to the same version?

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 ...
0 votes
0 answers
22 views

Can we have versions in shared-ui in Nx/Lerna/Turborepo

I hasve shared-ui, and apps directory where I have multiple large scale angular apps. The issue is that all the apps are managed by separate teams and if I make breaking changes in shared-ui it will ...
0 votes
0 answers
114 views

How do I recover lerna after a successful publish but is not detecting new tags

Long story short: Lerna is not detecting the latest git tags after a successful publish. Can I recover from this without re-publishing all the packages which included several major version bumps via ...
0 votes
0 answers
78 views

Lerna React Native CLI ERROR: autolinkLibrariesFromCommand

I have a Lerna project There are 2 react native projects inside the packages part. GameCenter and Bingo I want to use Bingo in Gamecenter GameCenter metro.config const { getDefaultConfig, mergeConfig }...
0 votes
0 answers
27 views

Resolving SHA-1 Error and 'unable to load script' in Lerna React Native Project

I have started a lerna project using npx lerna init package.json { "name": "root", "private": true, "scripts": { "start:gamecenter": "...
0 votes
0 answers
73 views

Independent Versioning, Publishing and Reverting of an MFE in a monorepo setup

I'm new to Monorepo and have been evaluating npm workspaces, nx, and lerna for my specific use case or lateral thinking. I have a shell with header, footer, product, and cart as MFEs, each with their ...
31 votes
4 answers
8k views

How to get rollup to include a dependency from another package in a lerna monorepo in its transpilation (TypeScript)?

I created a minimal example to show the question I have: Github repo. I have a lerna monorepo with two npm packages in the packages folder, the packages are called: utils: exports a function: ...

15 30 50 per page
1
2 3 4 5
44