Socket
Socket
Sign inDemoInstall

lerna

Package Overview
Dependencies
462
Maintainers
4
Versions
269
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lerna

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository


Version published
Weekly downloads
1.2M
increased by0.25%
Maintainers
4
Install size
106 MB
Created
Weekly downloads
 

Package description

What is lerna?

Lerna is a tool that optimizes the workflow around managing multi-package repositories with git and npm. It allows you to manage your project's dependencies, versioning, and publishing in a more organized manner, especially when dealing with a monorepo containing multiple packages.

What are lerna's main functionalities?

Bootstrap

Installs all of the dependencies for each package, links any cross-dependencies, and ensures that each package can find and use the correct versions of each other.

lerna bootstrap

Publish

Helps with versioning of the changes and publishing packages that have been updated to npm. It can automatically determine version bumps based on conventional commits, create git tags, and push releases to the repository.

lerna publish

Run

Runs an npm script in each package that contains that script. The '--scope' flag can be used to run the script only in specified packages.

lerna run --scope my-package test

Exec

Executes an arbitrary command in each of your packages. In this example, it removes the 'node_modules' directory from each package.

lerna exec -- rm -rf ./node_modules

List

Lists all of the public packages in the current Lerna repo.

lerna list

Changed

Lists public packages that have changed since the last tagged release.

lerna changed

Diff

Shows the diff since the last release for a single package or all packages.

lerna diff

Import

Imports an external repository into the 'packages' folder of your Lerna monorepo, preserving the commit history.

lerna import <path-to-external-repository>

Other packages similar to lerna

Changelog

Source

8.1.2 (2024-02-05)

Bug Fixes

  • improve git binary error (#3945) (7637972)

Readme

Source

Lerna

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

NPM Status CI Status

Usage

Check out our docs site here.

Keywords

FAQs

Last updated on 05 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc