Get basic information about all your lerna packages.
npm i lerna-packages
const lernaPackages = require('lerna-packages');
const allPackages = lernaPackages();
Returns an array of objects with the following data structure:
{
name: String,
private: Boolean,
version: String,
registry: String,
path: String
}
rootDir
The directory containing yourlerna.json
. Defaults to the directory where you invode the function.additionalKeys
An array of additional keys to pull from the modules package.json. Defaults to[]
.