/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/commands/clean/src/command.ts
29 строк
726 B
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 { filterOptions } from "@lerna/core"; import type { CommandModule } from "yargs"; /** * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module */ const command: CommandModule = { command: "clean", describe: "Remove the node_modules directory from all packages", builder(yargs) { yargs.options({ y: { group: "Command Options:", describe: "Skip all confirmation prompts", alias: "yes", type: "boolean", }, }); return filterOptions(yargs); }, async handler(argv) { const cmd: any = await import("."); return (cmd.default ?? cmd)(argv); }, }; export default command; export { command as "module.exports" };