← All changes
Cache

Lerna caching through Nx

Modern Lerna delegates task scheduling and caching to Nx, so it needs no protocol of its own: declaring cacheable targets in nx.json and setting the two Nx environment variables is the whole integration.

A cache filled by nx build is reused by lerna run build and the other way round, because both read and write the same artifact format.

Put a shared build cache behind your builds
Free tier, no credit card - connect Nx, Turborepo, Gradle, or Bazel in about five minutes.
Start freeSee pricing