Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// provide artificial --conventional-commits so --conventional-graduate works
this.options.conventionalCommits = true;
if (this.options.forcePublish) {
this.logger.warn("option", "--force-publish superseded by --conventional-graduate");
}
}
const updates = collectUpdates(
this.packageGraph.rawPackageList,
this.packageGraph,
this.execOpts,
this.options
);
this.result = listable.format(
updates.map(node => node.pkg),
this.options
);
if (this.result.count === 0) {
this.logger.info("", "No changed packages found");
process.exitCode = 1;
// prevents execute()
return false;
}
}
chain = chain.then(filteredPackages => {
this.result = listable.format(filteredPackages, this.options);
});