UNPKG

lerna

Version:

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

102 lines (100 loc) 3.36 kB
import { command_default as command_default15 } from "./chunk-UF5PMBIO.js"; import { command_default as command_default12 } from "./chunk-TDOJUOSY.js"; import "./chunk-VEY66ZJL.js"; import { command_default as command_default14 } from "./chunk-QWGYA4FB.js"; import { command_default as command_default11 } from "./chunk-V6PZZIJX.js"; import { command_default as command_default10 } from "./chunk-ICHFIBDJ.js"; import { command_default as command_default6 } from "./chunk-RHZ2VMII.js"; import { command_default as command_default7 } from "./chunk-3EEAPJFY.js"; import { command_default as command_default8 } from "./chunk-Y366IQQM.js"; import { command_default as command_default9 } from "./chunk-N3TOR6TI.js"; import { command_default as command_default3 } from "./chunk-OAUJ6G52.js"; import { command_default as command_default4 } from "./chunk-MTNKKPNB.js"; import { command_default as command_default5 } from "./chunk-FR5GJJDG.js"; import "./chunk-XNEGSIFA.js"; import { command_default as command_default13 } from "./chunk-G4S645JT.js"; import { command_default } from "./chunk-R52CQ2K4.js"; import { command_default as command_default2 } from "./chunk-HIDY2N2C.js"; import { lernaCLI, npmlog_default } from "./chunk-WC2B4V4E.js"; import "./chunk-MLKGABMK.js"; // packages/lerna/src/index.ts import pkg from "../package.json" with { type: "json" }; import yargsFactory from "yargs/yargs"; process.env["NX_ISOLATE_PLUGINS"] = "false"; process.env["NX_TUI"] = "false"; function main(argv) { const context = { lernaVersion: pkg.version }; const cli = lernaCLI().version(pkg.version).command(command_default13).command(command_default).command(command_default2).command(command_default3).command(command_default4).command(command_default5).command(command_default6).command(command_default7).command(command_default8).command(command_default9).command(command_default11).command(command_default14).command(command_default12).command(command_default15).command(command_default10); explicitlyHandleLegacyPackageManagementCommands(cli); return cli.parse(argv, context); } function explicitlyHandleLegacyPackageManagementCommands(yargsInstance) { ["add", "bootstrap", "link"].forEach((commandName) => { yargsInstance.command({ command: commandName === "add" ? "add <pkg> [globs..]" : commandName, describe: `The "${commandName}" command was removed by default in v7, and is no longer maintained.`, builder: (yargs) => { const parsed = yargsFactory(process.argv.slice(2)).argv; for (const x of Object.keys(parsed)) { if (x !== "_" && x !== "$0") { yargs.option(x, {}); } } return yargs; }, handler() { npmlog_default.error( commandName, `The "${commandName}" command was removed by default in v7 with a notice that it was no longer maintained. In v9, over 2 years later, it was finally removed.` ); npmlog_default.error( commandName, // TODO: Update the docs to be explicit about the removal in v9 `Learn more about this change at https://lerna.js.org/docs/legacy-package-management` ); process.exit(1); } }); }); } var index_default = main; export { index_default as default, main, main as "module.exports" };