UNPKG

lerna

Version:

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

39 lines (37 loc) 1.13 kB
// libs/commands/import/src/command.ts var command = { command: "import <dir>", describe: "Import a package into the monorepo with commit history", builder(yargs) { return yargs.positional("dir", { describe: "The path to an external git repository that contains an npm package" }).options({ flatten: { group: "Command Options:", describe: "Import each merge commit as a single change the merge introduced", type: "boolean" }, dest: { group: "Command Options:", describe: "Import destination directory for the external git repository", type: "string" }, "preserve-commit": { group: "Command Options:", describe: "Preserve original committer in addition to original author", type: "boolean" }, y: { group: "Command Options:", describe: "Skip all confirmation prompts", alias: "yes", type: "boolean" } }); }, async handler(argv) { return (await import("./src-ZLU5YDG2.js")).factory(argv); } }; var command_default = command; export { command_default };