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

danger-plugin-lerna

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger-plugin-lerna

Reports which packages in a lerna mono-repo will be published.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
370
decreased by-14.94%
Maintainers
1
Weekly downloads
 
Created
Source

danger-plugin-lerna

npm version semantic-release .github/workflows/deploy.yml

Reports which packages in a lerna mono-repo will be published.

Usage

Install:

yarn add danger-plugin-lerna --dev

At a glance:

// dangerfile.js
import lerna from 'danger-plugin-lerna';

schedule(lerna());

If package changes are detected messages will be published like so:

Message
:book::rocket: A new version of the stuff package will be published.
:book::rocket: A new version of the more-stuff package will be published.

Settings

The function accepts a settings object with the following properties:

namedescription
emojiAn emoji to prepend to the success message
noPublishMessageA message to show if there is nothing to publish.
formatSuccessMessageA function to format the success message.

Example:

import lerna from 'danger-plugin-lerna';

schedule(lerna({
  emoji: ':thinking:',
  noPublishMessage: 'No new package versions will be published',
  formatSuccessMessage(emoji, pkg) {
    return `${emoji} My custom message about the ${pkg.name} package`;
  }
}));

Keywords

FAQs

Package last updated on 12 Sep 2022

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