@tamara027/lerna-terminal
Version:
Powerful cli ui for monorepos
14 lines (11 loc) • 342 B
JavaScript
;
var fs = require('fs');
var path = require('path');
/**
* @param {string} packagePath - the path to the package
* @returns {Object} returns the lerna.json data object
**/
function getPackage(packagePath) {
return JSON.parse(fs.readFileSync(path.join(packagePath, 'package.json'), 'utf8'));
}
module.exports = getPackage;