/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/commands/init/src/command.ts
41 строка
1 KB
AI-JamesHenry
feat!: support node ^22.13.0 || ^24.0.0 || ^26.0.0, ship lerna as ESM-only (#4390)
14 июл 2026, 11:38
Не верифицирован
14 июл 2026, 11:38
a148ba2
Код
Авторство
О чём код?
import type { CommandModule } from "yargs"; /** * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module */ const command: CommandModule = { command: "init", describe: "Create a new Lerna repo or upgrade an existing repo to the current version of Lerna", builder: { exact: { describe: "Specify lerna dependency version in package.json without a caret (^)", type: "boolean", }, independent: { describe: "Version packages independently", alias: "i", type: "boolean", }, packages: { describe: "A glob pattern matching packages that should be included (instead of defaulting to the package manager's workspaces config)", type: "array", }, dryRun: { describe: "Preview the changes that will be made to the file system without actually modifying anything", type: "boolean", default: false, }, skipInstall: { describe: "Skip installation of dependencies after initialization", type: "boolean", }, }, async handler(argv) { return (await import(".")).factory(argv); }, }; export default command; export { command as "module.exports" };