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

lerna-script

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerna-script

lerna extension for custom scripts

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
decreased by-69.99%
Maintainers
1
Weekly downloads
 
Created
Source

lerna-script

For usage documentation please see root of repo;

API

packages(): LernaPackages[]

Returns list of packages/modules in repo - forward to lerna;

rootPackage(): LernaPackage[]

Returns Package of root module.

LernaPackage is Package in lerna.

iter.forEach(lernaPackages: [], task: lernaPackage => Promise): Promise(taskResults: [])

Executed provided command for all lernaPackages in a serial fashion. taskFn can be either sync task or return a Promise.

iter.parallel(lernaPackages: [], , task: lernaPackage => Promise): Promise(taskResults: [])

Executed provided command for all lernaPackages in a parallel fashion. taskFn can be either sync task or return a Promise.

iter.batched(lernaPackages: [], , task: lernaPackage => Promise): Promise(undefined)

Executed provided command for all lernaPackages in a batched fashion respecting dependency graph. taskFn can be either sync task or return a Promise.

exec.command(lernaPackage, {verbose = true})(command): Promise(stdout)

Executes given command for a package and returns collected stdout.

Keywords

FAQs

Package last updated on 28 Jul 2017

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