/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/commands/diff/src/command.ts
31 строка
909 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 type { CommandModule } from "yargs"; /** * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module */ const command: CommandModule = { command: "diff [pkgName]", describe: "Diff all packages or a single package since the last release", builder(yargs) { return yargs .positional("pkgName", { describe: "An optional package name to filter the diff output", }) .options({ "ignore-changes": { group: "Command Options:", describe: "Ignore changes in files matched by glob(s).", type: "array", }, }) .epilogue( "When ignoreChanges is configured in lerna.json, pass --no-ignore-changes to include ignored files." ); }, async handler(argv) { return (await import(".")).factory(argv); }, }; export default command; export { command as "module.exports" };