
About Lerna
Lerna is an open source tool for JavaScript and TypeScript monorepos. It runs commands across the packages in one repository and helps you publish them to npm.
What it does
Lerna runs npm scripts across many packages, in dependency order and in parallel where possible. Its task running is powered by Nx, and it caches results so it does not repeat work it has already done. That cache can be shared across machines. Lerna also handles publishing, with support for packages that use independent versions or one shared version.
Key features
- Runs scripts across packages in dependency order
- Parallel execution where it is safe
- Local and shared task caching
- Publishing to npm with versioning
- Graph view of the workspace structure
Who it's for
Library teams that maintain several related npm packages and want to publish them together. Teams that already have a monorepo and need a tool for running tasks across it will also find it useful.
Pricing and good to know
Lerna is free and open source under the MIT license. Because its task running relies on Nx, you may see Nx features and options in its docs. Check the current documentation for the version you install, since the tool has changed over time.
Highlights
- Runs scripts across packages in dependency order
- Parallel execution with task caching
- Publishes packages to npm with versioning
- Supports independent or shared package versions
- Graph view of workspace structure












