Skip to content

Successor Map · Build tools and bundlers

Lerna to Nx or pnpm workspaces: the monorepo tool that changed hands

Lerna was at risk of being unmaintained until Nx took over its stewardship in 2022. It is released regularly again, but linking packages is now the package manager's job and running tasks is handed to Nx.

Slide: Lerna on the left, an arrow, and Nx or pnpm workspaces on the right.
Status of the old tool
Still active
Effort to move
Mechanical
gen2.dev's view
Leave it
Sources checked
2026-11-28

Key facts

Gen 1Lerna, with its own bootstrap, add and link commands
Gen 2Package manager workspaces (npm, Yarn or pnpm) with Nx running tasks
Kind of toolBuild tools and bundlers
Status of Gen 1Still active Lerna's changelog lists version 10.1.3 on 2026-11-19, and its README says the project changed stewardship to Nx and is alive and well.
Effort to moveMechanical: same ideas, different calls
What breaksScripts and CI jobs that call lerna bootstrap, lerna add or lerna link fail, because Lerna 9.0.0 removed those commands completely.
Should you move?Leave it Lerna is maintained and released under Nx stewardship, so staying on a current Lerna version is fine; only the removed commands have to go. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 6 sources

Gen 1 and Gen 2 side by side

npm registry Gen 1 Gen 2
Packagelernanx
Latest version10.1.324.1.0
Latest releaseNov 19, 2026Nov 27, 2026
First releaseDec 4, 2015Aug 8, 2011
LicenseMITMIT
Downloads, last week1,992,98114,727,765

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

What Gen 1 was

Lerna made it practical to keep many JavaScript packages in one repository. Its README still describes it as "a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository."

The classic Lerna did three jobs: it linked the packages to each other with lerna bootstrap, it ran scripts across them, and it versioned and published them.

What replaced it

Lerna was not replaced so much as taken apart. Its own documentation says, "Nx took over stewardship of Lerna in 2022 after it was at risk of being unmaintained." The lead maintainer announced it in an issue titled "Announcement: Passing the torch" on May 6, 2022.

Two of the three jobs then moved out:

  • Linking went to the package manager. Lerna's documentation says of installing and linking dependencies that "your package manager is much better suited to that task." The pnpm documentation, for one, says "pnpm has built-in support for monorepositories."
  • Running tasks went to Nx. Lerna now uses Nx to detect the packages in the workspace and, in its own words, "defers to Nx's powerful task runner to run scripts."

The README's summary for worried users: "Your favorite tool is alive and well." The changelog lists version 10.1.3 on 2026-11-19.

What moving involves

For a repository on old Lerna, the move is to current Lerna on top of workspaces, and the documentation gives the replacements:

  • Replace lerna bootstrap with npm install, or the Yarn or pnpm equivalent. If an install already runs earlier in the workflow, delete the bootstrap step.
  • Remove lerna link. The package manager links packages during install.
  • Replace lerna add <dependency> --scope <package> with npm install <dependency> -w <package>.

With pnpm, the workspace is declared in a pnpm-workspace.yaml file at the root. This is a refactor of the build, not a rewrite, which is the cheaper side of the rewrite or refactor decision.

What breaks

The removal came in two stages. Lerna 7.0.0, dated 2023-06-08, removed the three commands by default and made package manager workspaces the default. Lerna 9.0.0, dated 2025-09-23, removed them completely. Any script, CI job or onboarding document that still calls them stops working at that upgrade.

The major versions also raise the Node floor: 7.0.0 dropped Node v14 and 9.0.0 dropped Node v18. Lerna 10.0.0, dated 2026-07-29, supports only Node ^22.13.0, ^24.0.0 or ^26.0.0 and ships Lerna as ESM-only, so check any tooling that loads Lerna with require().

One pnpm detail deserves a test. With the workspace: protocol, pnpm refuses to resolve a dependency to anything other than a local workspace package, so a version that used to come quietly from the registry now fails the install.

Should you move?

Leave it, provided you are on a current version. Lerna is maintained and released, and nothing in its documentation asks you to leave.

The exceptions are repositories pinned to a Lerna version that still depends on bootstrap, which should move to workspaces before upgrading anything else, and teams that only ever used Lerna to link packages. Those teams can use workspaces alone.

Common questions

Is Lerna dead?

No. Its maintainers have not announced an end. Lerna's changelog lists version 10.1.3 on 2026-11-19, and its README says the project changed stewardship to Nx and is alive and well.

What replaced Lerna?

Package manager workspaces (npm, Yarn or pnpm) with Nx running tasks. Effort to move: Mechanical: same ideas, different calls

Should I move off Lerna?

gen2.dev's view: Leave it. Lerna is maintained and released under Nx stewardship, so staying on a current Lerna version is fine; only the removed commands have to go.

Sources

  1. lerna/lerna README - GitHub - Describes Lerna as a build system for managing and publishing multiple packages, and carries the note that the project changed stewardship to Nx.
  2. Announcement: Passing the torch, issue 3121 - lerna/lerna (May 6, 2022) - The lead maintainer's announcement that Nrwl is taking over stewardship of Lerna.
  3. Lerna and Nx - Lerna documentation - Says Nx took over stewardship in 2022 after Lerna was at risk of being unmaintained, and explains that Lerna uses Nx to detect packages and run tasks.
  4. Legacy Package Management - Lerna documentation - States that bootstrap, add and link were fully removed in v9.0.0 and gives the replacement for each.
  5. Lerna CHANGELOG - GitHub - Release dates and breaking changes: 7.0.0 on 2023-06-08, 9.0.0 on 2025-09-23, 10.0.0 (ESM-only, Node ^22.13.0, ^24.0.0 or ^26.0.0) on 2026-07-29 and 10.1.3 on 2026-11-19.
  6. Workspaces - pnpm documentation - Says pnpm has built-in support for monorepositories, and describes pnpm-workspace.yaml and the workspace protocol.
  7. lerna - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
  8. nx - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.