@lerna/publish
Version:
Publish packages in the current project
42 lines (41 loc) • 1.54 kB
JavaScript
var import_core = require("@lerna/core");
const command = {
command: "changed",
aliases: ["updated"],
describe: "List local packages that have changed since the last tagged release",
builder(yargs) {
const opts = {
// only the relevant bits from `lerna version`
"conventional-commits": {
// fallback for overzealous --conventional-graduate
hidden: true,
type: "boolean"
},
"conventional-graduate": {
describe: "Detect currently prereleased packages that would change to a non-prerelease version."
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
},
"force-publish": {
describe: "Always include targeted packages when detecting changed packages, skipping default logic."
// type must remain ambiguous because it is overloaded (boolean _or_ string _or_ array)
},
"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 (0, import_core.listableOptions)(yargs, "Output Options:");
},
handler(argv) {
return require(".")(argv);
}
};
module.exports = command;