lerna-utils
v1.2.0
Published
Util functions for leveraging lerna
Downloads
4
Maintainers
Readme
lerna-utils
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, defaultconsole
)
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, defaultconsole
)
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 jenkinsregex
Object a regex to test the stringlogger
Object a logging object with info method to log results (optional, defaultconsole
)
Returns Promise an evaluated str from stderr