Build system for managing and publishing many JavaScript/TypeScript packages from one repository
open sourceMITfree
Lerna is a build system for monorepos that manage and publish many JavaScript and TypeScript packages from one repository. It runs npm scripts across all or some projects, caches task results (shareable across machines), visualises the project dependency graph and distributes task execution in CI, and handles versioning and publishing packages. Its stewardship passed to Nx's team; tasks and caching work interchangeably with Nx.
Ways to install
Package managers
Problems it solves
- publish many npm packages from one repository
- speed up builds in a JavaScript monorepo with caching
- run a script only in packages that changed
Features
- run tasks across monorepo projects
- task result caching, shareable across machines
- project graph visualisation
- distributed task execution in CI
- versioning and publishing packages
Alternatives
The same job
These do what Lerna does.
- Rush Monorepo manager for building and publishing many JavaScript packages from one repo
- Turborepo Task runner and build system for JavaScript and TypeScript monorepos, with remote caching
- Bazel a fast, scalable, multi-language and extensible build system
- Nx The Monorepo Platform that amplifies both developers and AI agents.
- Melos Monorepo and multi-package tool for Dart and Flutter
- Pants Scalable build system for monorepos in many languages