0.0.14 • Published 3 years ago
@platyplus/lerna v0.0.14
@platyplus/lerna
A simple node API that wraps some Lerna commands
Installation
yarn add @platyplus/lerna
Usage
import lerna from '@platyplus/lerna'
// ...
// In an async block:
const p = await getLernaPackage('@my-org/package-name')
console.log(p)
/*
{
name: '@my-org/package-name'
location: '/absolute/path/to/package'
version: 'package-version'
private: true/false
}
*/
// Scope is optional
const deps = await getLernaDependencies(scope)
// Scope is optional
const exists = await hasLernaPackage(scope)