Lerna
Build / code quality tool · Free
JavaScript monorepo tooling: it manages tasks, versions, and publication of multiple related project packages.
Also known as: lerna/lerna; lerna; javascript-monorepo; typescript-packages-manager

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Manage related JavaScript packages in a monorepo
- Configure task execution and coordinated versioning to release related packages
Example workflow
A possible workflow; this is not a report of hands-on testing.
Manage related JavaScript packages in a monorepo.
Before you start
- A repository, package manifests, and configuration.
- A compatible runtime and the target build command.
Steps
- Define packages, their dependencies, and shared workspace tasks.
- Configure task execution and coordinated versioning to release related packages.
- Add the workflow to scripts or CI with a clear report.
Check your result
- A clean copy of the project reproduces the result.
- Errors produce a nonzero exit code and clear diagnostics.
Choosing Lerna
Manage related JavaScript packages in a monorepo
Choose this when
- Manage related JavaScript packages in a monorepo
- Configure task execution and coordinated versioning to release related packages
Requirements
- For version, check Git and package metadata; for publish, separately configure npm registry access.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- lerna version changes versions, creates a commit/tag, and may push them to the remote; it does more than calculate a number.
Frequently asked questions
What can you use for free in Lerna?
Code and local use under MIT.
What additional costs might arise with Lerna?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Lerna?
MIT for the code; dependencies have separate licenses.
How do you get started with Lerna?
Define packages, their dependencies, and shared workspace tasks. Configure task execution and coordinated versioning to release related packages. Add the workflow to scripts or CI with a clear report.
Does lerna version publish packages to npm?
No: the guide separates version from publish. version updates versions, creates a commit/tag, and pushes them to the remote; publish additionally publishes packages. private:true excludes a package from publication; --no-private also excludes it from version.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Lerna
- build
- Development