UNPKG

lerna

Version:

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

34 lines (31 loc) 922 B
import { filterOptions } from "./chunk-WC2B4V4E.js"; // packages/lerna/src/commands/watch/command.ts var command = { command: "watch", describe: "Runs a command whenever packages or their dependents change.", builder(yargs) { yargs.parserConfiguration({ "populate--": true, "strip-dashed": true }).option("command", { type: "string", hidden: true }).option("verbose", { type: "boolean", description: "Run watch mode in verbose mode, where commands are logged before execution." }).middleware((args) => { const { "--": doubleDash } = args; if (doubleDash && Array.isArray(doubleDash)) { args.command = doubleDash.join(" "); } }, true); return filterOptions(yargs); }, async handler(argv) { return (await import("./commands/watch/index.js")).factory(argv); } }; var command_default = command; export { command, command_default };