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);
});
exports.builder = yargs => {
listable.options(yargs);
return filterable(yargs);
};
"ignore-changes": {
describe: [
"Ignore changes in files matched by glob(s) when detecting changed packages.",
"Pass --no-ignore-changes to completely disable.",
].join("\n"),
type: "array",
},
"include-merged-tags": {
describe: "Include tags from merged branches when detecting changed packages.",
type: "boolean",
},
};
yargs.options(opts).group(Object.keys(opts), "Command Options:");
return listable.options(yargs, "Output Options:");
};