question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] When is lerna appropriate for monorepo management?

See original GitHub issue

Hi @evocateur…I’m trying out lerna. You mentioned in passing here, here, here, here that there are cases where you don’t recommend it.

Our use case is more general/common - our monorepo has an express server, angular client, and shared libraries (using file:../shared to link them). We use pnpm to avoid npm’s space/time waste.

I don’t publish to npm… I don’t even have an npm account. However I do deploy the dist directory to our VPS.

In this very common use case, is lerna overkill?

(Not trolling you, lerna is really cool, I’m just unsure about this use case. The docs weren’t clear.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lonix1commented, Apr 4, 2019

@blieque No the testing trouble was with nx (testing config is buggy and convoluted), which is why we’re gonna swap that out for lerna.

Thanks for your comments, most lerna users seem to use it for OSS / npm-related work, so I needed some from-the-trenches advice for our use case… thanks!

0reactions
bliequecommented, Apr 17, 2019

We may well start to publish packages, but I get your point that Lerna isn’t strictly required for a monorepo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Manage Monorepos With Lerna - DigitalOcean
Lerna is as a tool for managing JavaScript projects with multiple packages with features such as package bootstrapping, parallelized builds, ...
Read more >
Create a monorepo with Lerna | by Damian Cyrus - Medium
Introduction to Lerna and a example project to create a Lerna repository to manage multiple packages in a structured way.
Read more >
Managing Your Typescript Monorepo With Lerna and Codefresh
Lerna is a tool to manage Monorepos with Git and npm, which automatically ties together all package versions used across your repository. Assume ......
Read more >
Managing Monorepo using Lerna and Yarn workspaces
Lerna is "a tool for managing JavaScript projects with multiple packages", as the official website says, which is a tool to manage multiple...
Read more >
Managing monorepos with Lerna and Yarn workspaces
Lerna and Yarn Workspaces gives us the ability to build and publish libraries and apps in a single repository (a.k.a. Monorepo).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found