UNPKG

lerna

Version:

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository

54 lines (51 loc) 1.9 kB
import { listableOptions } from "./chunk-WC2B4V4E.js"; // libs/commands/changed/src/command.ts var 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-conventional-graduate": { describe: "Always include all packages by specified by --conventional-graduate whether or not they are a prerelease or have changes since the previous version.", type: "boolean" }, "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 listableOptions(yargs, "Output Options:"); }, async handler(argv) { return (await import("./src-L3LBHIOT.js")).factory(argv); } }; var command_default = command; export { command_default };