1.2.0 • Published 2 years ago

lerna-utils v1.2.0

Weekly downloads
42
License
MIT
Repository
github
Last release
2 years ago

lerna-utils


CircleCI

Install

$ npm install lerna-utils --save-dev
# or
$ yarn add lerna-utils -D

Documentation

Table of Contents

get-updated-packages

this version is specific to lerna 2.0 range and is a way to use lerna's output for updated --json and resolve or reject a list of packages

Parameters

  • logger object any logger to log stdout/stderr (optional, default console)

Returns Promise promise that resolves list of updated packages only

exports

this version is specific to lerna 3.0 range and is a way to use lerna's output for updated --json and resolve or reject a list of packages

Parameters

  • logger object a logging object with info method to log results (optional, default console)

Returns Promise promise that resolves list of updated packages only

check-stderr

evaluates the stdout from an error that might happen while publishing. We want only relevant errors rejecting.

Parameters

  • str string the stdout string that lets us check lerna --json safely and respond with appropriate exit code for jenkins
  • regex Object a regex to test the string
  • logger Object a logging object with info method to log results (optional, default console)

Returns Promise an evaluated str from stderr