talira

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.

  1. Rush Monorepo manager for building and publishing many JavaScript packages from one repo
  2. Turborepo Task runner and build system for JavaScript and TypeScript monorepos, with remote caching
  3. Bazel a fast, scalable, multi-language and extensible build system
  4. Nx The Monorepo Platform that amplifies both developers and AI agents.
  5. Melos Monorepo and multi-package tool for Dart and Flutter
  6. Pants Scalable build system for monorepos in many languages

Compare Lerna with the top 3