Lerna

Open source

Lerna is a build system, powered by Nx, for running tasks and publishing many JavaScript or TypeScript packages from one repository.

Open-source alternative to

lerna.js.org
Lerna homepage screenshot
GitHub stars
36k
Last 30 days
-5(+0%)
Last commit
2 days ago
Repository age
10 years
Version
v10.1.2
Licence
MIT
Self-hosted
Yes

About Lerna

Lerna manages and publishes multiple JavaScript and TypeScript packages that live in the same repository. It runs a command against any number of projects in the right order and in parallel, and it relies on caching so that tasks already run are not repeated. It is built on Nx and the site is copyrighted by Nx.

Publishing to npm is a main use, whether packages have independent versions or not. Other pieces include target dependencies between npm scripts, a shared cache for developers and CI machines, distributed execution across machines, and an interactive workspace visualizer. It starts with npx lerna init and needs little configuration; MIT licensed.

Key features

  • Builds and publishes many packages from one repo
  • Shared cache across developers and CI
  • Dependencies between npm scripts
  • Distributed execution on several machines
  • Interactive workspace graph
  • Publishes packages to npm

Good fit for

  • Monorepo task running
  • Publishing multiple npm packages
  • Speeding up CI with a shared cache
Tags
monorepo
build system
npm
javascript
typescript
nx

Lerna: questions and answers

What is Lerna used for?
Lerna is a build system, powered by Nx, for running tasks and publishing many JavaScript or TypeScript packages from one repository. It is a good fit for monorepo task running, publishing multiple npm packages and speeding up CI with a shared cache.
Is Lerna open source?
Yes. Lerna is open source under the MIT licence. Its source code is on GitHub at lerna/lerna and is written mainly in TypeScript.
Is Lerna free?
Yes. Lerna is open source, so the software itself is free to use.
Can I self-host Lerna?
Yes. Lerna can be self-hosted on your own server or infrastructure.
What is Lerna an alternative to?
Lerna is an open-source alternative to Patchwork. Other open-source alternatives to Patchwork include Turborepo, Rushstack and Webpack.
Is Lerna actively maintained?
Yes. The most recent commit to Lerna was on 11 November 2026, and the latest release is v10.1.2, published on 6 November 2026. The project has 36k stars on GitHub.

Open-source alternatives to Lerna

See all

SaaS alternatives to Lerna

See all