Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/changed

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/changed

List local packages that have changed since the last tagged release

  • 6.6.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
610K
increased by12.3%
Maintainers
2
Weekly downloads
 
Created

What is @lerna/changed?

@lerna/changed is a part of the Lerna monorepo management toolset. It is used to list local packages that have changed since the last tagged release. This is particularly useful in monorepo setups where you need to identify which packages have been modified and need to be published.

What are @lerna/changed's main functionalities?

List Changed Packages

This feature allows you to list all the packages that have changed since the last tagged release. The code sample uses Node.js to execute the `lerna changed` command and prints the list of changed packages.

const { execSync } = require('child_process');
const changedPackages = execSync('npx lerna changed').toString();
console.log(changedPackages);

Filter by Scope

This feature allows you to filter the list of changed packages by a specific scope. The code sample demonstrates how to list changed packages that match the given scope.

const { execSync } = require('child_process');
const changedPackages = execSync('npx lerna changed --scope my-package').toString();
console.log(changedPackages);

Include Private Packages

This feature allows you to include private packages in the list of changed packages. The code sample shows how to list all changed packages, including those that are private.

const { execSync } = require('child_process');
const changedPackages = execSync('npx lerna changed --include-private').toString();
console.log(changedPackages);

Other packages similar to @lerna/changed

Keywords

FAQs

Package last updated on 04 May 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc