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

@purple/lerna-smart-run

Package Overview
Dependencies
Maintainers
16
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purple/lerna-smart-run

Lerna add-on for only running npm scripts for packages changed since previous branch-based tag

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-93.5%
Maintainers
16
Weekly downloads
 
Created
Source

lerna-smart-run

Lerna add-on for only running npm scripts for packages changed since previous tag

Background

This package is a glorified wrapper around ordinary lerna run <script> commands, but it implements a system to control the order of execution and an automated, opionated tagging system (based on git branches) that takes advantage of lerna's --since option.

This package is intended for use in CI and CD pipelines.

Usage

Invoke with smartRun <npm script>, where <npm script> is a script from the scripts section of the package.json of one of your lerna packages.

Optional arguments

Pass --tagOnSuccess to generate a tag from the successful execution of the smart run. This tag will be used on the following execution.

Pass --runFirst <package-name> to run the named package before the rest. This is useful for serverless monorepos where the deployment of some services rely on the finished deployment of another resource.

Pass --runLast <package-name> to run the named package after the rest. This is useful for serverless monorepos where the deployment of some services rely on the finished deployment of another resource.

Disclaimer

This package is in an early, experimental stage, and is likely to change dramatically between different versions.

Keywords

FAQs

Package last updated on 15 Oct 2020

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