Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this.p = new lerna.__commands__.publish()
this.p.updates = []
}
function runPublish(cb) {
const PublishCommand = lerna.__commands__.publish;
const flags = {
skipNpm: true,
skipGit: true,
};
const publish = new PublishCommand([], flags);
publish.runValidations();
publish.runPreparations();
publish.initialize(function (err) {
if (err) throw err;
publish.updateUpdatedPackages();
publish.updates.forEach(update => {
const dir = update.package.location;
const tag = 'latest';