@icebreakers/monorepo 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { d as localize, f as message, m as logger, p as supportedLocales, r as cliName, t as initToolingTargets, u as version, y as fs } from "./types-BS9l6MOk.mjs";
1
+ import { b as fs, d as localize, f as message, h as logger, m as supportedLocales, r as cliName, t as initToolingTargets, u as version } from "./types-DC-VClVk.mjs";
2
+ import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
2
3
  import path from "pathe";
3
4
  import process from "node:process";
4
5
  import path$1 from "node:path";
@@ -9,7 +10,7 @@ import { Command, Option } from "commander";
9
10
  async function handleAiPromptCreate(cwd, opts) {
10
11
  const [{ input }, { createTimestampFolderName, defaultAgenticBaseDir, generateAgenticTemplate, generateAgenticTemplates, loadAgenticTasks }, { resolveCommandConfig }] = await Promise.all([
11
12
  import("@icebreakers/monorepo-templates"),
12
- import("./commands-BqUFCJA_.mjs").then((n) => n.t),
13
+ import("./commands-CezFU4i0.mjs").then((n) => n.t),
13
14
  import("./config-p842Knhq.mjs").then((n) => n.n)
14
15
  ]);
15
16
  const aiConfig = await resolveCommandConfig("ai", cwd);
@@ -124,7 +125,7 @@ async function emitConfigInspection(inspection, opts, cwd) {
124
125
  }
125
126
  function registerConfigCommands(program, cwd) {
126
127
  program.command("config").alias("cfg").description(localize("Configuration commands", "配置命令")).command("inspect").description(localize("Show the active repoctl config file and resolved configuration", "输出当前 repoctl 配置文件和已解析配置")).alias("i").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact cwd, configDir, and home paths", "脱敏 cwd/configDir/home 绝对路径后再输出")).action(async (opts) => {
127
- const { inspectMonorepoConfig } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
128
+ const { inspectMonorepoConfig } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
128
129
  await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
129
130
  });
130
131
  }
@@ -444,23 +445,23 @@ async function emitEnvSupportBundle(bundle, opts, cwd) {
444
445
  function registerEnvCommands(program, cwd) {
445
446
  const envCommand = program.command("env").alias("e").description(localize("Environment and support commands", "环境命令"));
446
447
  envCommand.command("info").description(localize("Show environment information for the current repository", "输出当前仓库环境信息")).alias("i").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).action(async (opts) => {
447
- const { collectEnvInfo } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
448
+ const { collectEnvInfo } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
448
449
  await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
449
450
  });
450
451
  envCommand.command("snapshot").description(localize("Create a support snapshot with environment, doctor, and check data", "输出排障快照,包含环境、doctor 和 check 计划")).alias("s").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Fail when doctor reports a failure or warning", "输出快照后,如果 doctor 有 fail 或 warn 则返回失败码")).action(async (opts) => {
451
- const { collectEnvSnapshot } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
452
+ const { collectEnvSnapshot } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
452
453
  await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
453
454
  });
454
455
  envCommand.command("paths").description(localize("Show important repository and report paths", "输出当前仓库关键路径和报告建议位置")).alias("p").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).action(async (opts) => {
455
- const { collectEnvPaths } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
456
+ const { collectEnvPaths } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
456
457
  await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
457
458
  });
458
459
  envCommand.command("support").description(localize("Create a complete support bundle", "输出完整排障包,包含环境、路径、配置、doctor 和 check 计划")).alias("b").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Fail when doctor reports a failure or warning", "输出排障包后,如果 doctor 有 fail 或 warn 则返回失败码")).action(async (opts) => {
459
- const { collectEnvSupportBundle } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
460
+ const { collectEnvSupportBundle } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
460
461
  await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
461
462
  });
462
463
  envCommand.command("mirror").description(localize("Configure the VS Code binary mirror", "设置 VS Code binary mirror")).alias("m").action(async () => {
463
- const { setVscodeBinaryMirror } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
464
+ const { setVscodeBinaryMirror } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
464
465
  await setVscodeBinaryMirror(cwd);
465
466
  logger.success(localize("Environment mirror finished.", "环境镜像完成。"));
466
467
  });
@@ -469,7 +470,7 @@ function registerEnvCommands(program, cwd) {
469
470
  //#region src/cli/commands/package.ts
470
471
  function registerPackageCommands(program, cwd) {
471
472
  program.command("package").alias("pkg").description(localize("Package commands", "子包命令")).command("create").description(localize("Create a new workspace package", "创建一个新的子包")).alias("new").argument("[name]").option("-t, --template <template>", localize("Use a template key without prompting", "直接使用指定模板,跳过模板选择")).option("--dry-run", localize("Preview without writing files", "预览将要创建的目录与 package 信息,不写入文件")).option("--json", localize("Output JSON; implies --dry-run", "以 JSON 输出创建预览,隐含 --dry-run")).option("--out <file>", localize("Write the preview to a file; implies --dry-run", "把创建预览写入文件,隐含 --dry-run")).action(async (inputName, opts) => {
472
- const { runCreateFlow } = await import("./create-flow-BE4Nd902.mjs");
473
+ const { runCreateFlow } = await import("./create-flow-Ck_U7ePd.mjs");
473
474
  const result = await runCreateFlow(cwd, inputName, {
474
475
  ...opts.template !== void 0 ? { template: opts.template } : {},
475
476
  ...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
@@ -490,13 +491,20 @@ async function runReleaseAction(action) {
490
491
  process.exitCode = 1;
491
492
  }
492
493
  }
494
+ async function resolveReleaseOptions(cwd) {
495
+ const config = await resolveCommandConfig("release", cwd);
496
+ return {
497
+ cwd,
498
+ ...config ? { config } : {}
499
+ };
500
+ }
493
501
  function registerReleaseCommands(program, cwd) {
494
502
  const releaseCommand = program.command("release").description(localize("Release and pnpm versioning commands", "发布与 pnpm versioning 工具集"));
495
503
  releaseCommand.command("ci").description(localize("Prepare, publish, or recover versions in CI", "在 CI 中自动准备、发布和恢复版本")).option("--mode <mode>", localize("auto / prepare / publish / publish-unpublished", "auto / prepare / publish / publish-unpublished"), "auto").option("--package <name>", localize("Package used by publish-unpublished mode", "publish-unpublished 使用的 package")).option("--version <version>", localize("Version used by publish-unpublished mode", "publish-unpublished 使用的版本")).action(async (opts) => {
496
504
  await runReleaseAction(async () => {
497
- const { releaseCi } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
505
+ const { releaseCi } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
498
506
  await releaseCi({
499
- cwd,
507
+ ...await resolveReleaseOptions(cwd),
500
508
  ...opts.mode ? { mode: opts.mode } : {},
501
509
  ...opts.package ? { packageName: opts.package } : {},
502
510
  ...opts.version ? { packageVersion: opts.version } : {}
@@ -506,7 +514,7 @@ function registerReleaseCommands(program, cwd) {
506
514
  });
507
515
  releaseCommand.command("notes").description(localize("Manage GitHub Release notes", "维护 GitHub Release 正文")).command("repair").description(localize("Rebuild GitHub Release notes from the changelog for each release tag", "按每个发布 tag 对应的 changelog 重建 GitHub Release 正文")).option("--all", localize("Repair every recognized GitHub Release", "修复所有可识别的 GitHub Release")).option("--tag <package@version>", localize("Repair only the specified package@version", "只修复指定 package@version")).option("--dry-run", localize("Generate and summarize without updating GitHub Releases", "只生成并统计,不更新 GitHub Release")).action(async (opts) => {
508
516
  await runReleaseAction(async () => {
509
- const { repairReleaseNotes } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
517
+ const { repairReleaseNotes } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
510
518
  const result = await repairReleaseNotes({
511
519
  cwd,
512
520
  ...opts.all ? { all: true } : {},
@@ -518,43 +526,52 @@ function registerReleaseCommands(program, cwd) {
518
526
  });
519
527
  const stableCommand = releaseCommand.command("stable").description(localize("Run a stable release from main", "在 main 分支执行正式发布")).action(async () => {
520
528
  await runReleaseAction(async () => {
521
- const { releaseStable } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
522
- await releaseStable({ cwd });
529
+ const { releaseCi } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
530
+ await releaseCi({
531
+ ...await resolveReleaseOptions(cwd),
532
+ mode: "publish"
533
+ });
523
534
  logger.success(localize("Stable release finished.", "稳定版发布完成。"));
524
535
  });
525
536
  });
526
537
  stableCommand.command("prepare").description(localize("Consume pnpm change intents and prepare a Release PR", "消费 pnpm change intents 并准备 Release PR")).action(async () => {
527
538
  await runReleaseAction(async () => {
528
- const { prepareStable } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
529
- await prepareStable({ cwd });
539
+ const { releaseCi } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
540
+ await releaseCi({
541
+ ...await resolveReleaseOptions(cwd),
542
+ mode: "prepare"
543
+ });
530
544
  logger.success(localize("Stable release preparation finished.", "稳定版发布准备完成。"));
531
545
  });
532
546
  });
533
547
  stableCommand.command("publish").description(localize("Publish versions on main that are not yet on npm", "发布 main 分支上尚未发布的包")).action(async () => {
534
548
  await runReleaseAction(async () => {
535
- const { publishStable } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
536
- await publishStable({ cwd });
549
+ const { releaseCi } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
550
+ await releaseCi({
551
+ ...await resolveReleaseOptions(cwd),
552
+ mode: "publish"
553
+ });
537
554
  logger.success(localize("Stable package publish finished.", "稳定版包发布完成。"));
538
555
  });
539
556
  });
540
557
  const preCommand = releaseCommand.command("pre").description(localize("Run or manage prereleases", "执行或管理 prerelease 发布"));
541
558
  preCommand.command("publish").alias("run").description(localize("Publish a prerelease from an alpha, beta, rc, or next lane", "在 alpha/beta/rc/next 分支发布 prerelease")).action(async () => {
542
559
  await runReleaseAction(async () => {
543
- const { releasePrerelease } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
544
- await releasePrerelease({ cwd });
560
+ const { releaseCi } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
561
+ await releaseCi(await resolveReleaseOptions(cwd));
545
562
  logger.success(localize("Prerelease finished.", "预发布完成。"));
546
563
  });
547
564
  });
548
565
  preCommand.command("enter").description(localize("Enter a pnpm prerelease lane", "进入 pnpm prerelease lane")).argument("<tag>", localize("alpha / beta / rc / next", "alpha / beta / rc / next")).action(async (tag) => {
549
566
  await runReleaseAction(async () => {
550
- const { enterPrerelease } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
567
+ const { enterPrerelease } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
551
568
  await enterPrerelease(tag, { cwd });
552
569
  logger.success(localize(`Entered ${tag} prerelease mode.`, `已进入 ${tag} 预发布模式。`));
553
570
  });
554
571
  });
555
572
  preCommand.command("exit").description(localize("Exit the pnpm prerelease lane", "退出 pnpm prerelease lane")).action(async () => {
556
573
  await runReleaseAction(async () => {
557
- const { exitPrerelease } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
574
+ const { exitPrerelease } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
558
575
  await exitPrerelease({ cwd });
559
576
  logger.success(localize("Exited prerelease mode.", "已退出预发布模式。"));
560
577
  });
@@ -565,7 +582,7 @@ function registerReleaseCommands(program, cwd) {
565
582
  const skillTargets = ["codex", "claude"];
566
583
  function registerSkillsCommands(program, cwd) {
567
584
  program.command("skills").alias("sk").description(localize("AI skill commands", "技能工具集")).command("sync").description(localize("Synchronize the repoctl skill to global agent directories", "同步 resources/skills/icebreakers-monorepo-cli 到全局目录")).alias("s").option("--codex", localize("Synchronize to ~/.codex/skills", "同步到 ~/.codex/skills")).option("--claude", localize("Synchronize to ~/.claude/skills", "同步到 ~/.claude/skills")).option("--all", localize("Synchronize every target", "同步全部目标")).action(async (opts) => {
568
- const { syncSkills } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
585
+ const { syncSkills } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
569
586
  const selected = /* @__PURE__ */ new Set();
570
587
  if (opts.all) for (const target of skillTargets) selected.add(target);
571
588
  else {
@@ -685,7 +702,7 @@ function registerTemplatesCommands(program) {
685
702
  program.command("templates").alias("tpl").description(localize("List the built-in templates", "列出可用的内置模板")).argument("[key]", localize("Show details for a template key", "查看指定模板详情")).option("-c, --category <category>", localize("Filter by library, app, service, docs, or tool", "按模板分类过滤:library / app / service / docs / tool")).option("--check", localize("Check built-in template metadata and directories", "检查内置模板元数据、目录和临时文件")).option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown for documentation", "输出 Markdown,方便同步文档")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).action(async (key, opts) => {
686
703
  const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
687
704
  if (opts.check) {
688
- const { checkTemplates } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
705
+ const { checkTemplates } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
689
706
  const report = await checkTemplates();
690
707
  if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
691
708
  else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
@@ -764,7 +781,7 @@ function normalizeToolingTargets(tooling) {
764
781
  function registerToolingCommands(program, cwd) {
765
782
  program.command("tooling").alias("tg").description(localize("Tooling configuration commands", "工程化配置命令")).command("init").description(localize(`Generate tooling configuration (${initToolingTargets.join(", ")})`, `生成 tooling 配置(可选值:${initToolingTargets.join(", ")})`)).alias("i").argument("[tooling...]").option("-a, --all", localize("Generate every tooling configuration", "生成全部 tooling 配置")).option("-f, --force", localize("Overwrite existing tooling configuration files", "覆盖已存在的 tooling 配置文件")).action(async (tooling = [], opts) => {
766
783
  const normalizedTooling = normalizeToolingTargets(tooling);
767
- const { initTooling } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
784
+ const { initTooling } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
768
785
  await initTooling(cwd, {
769
786
  ...normalizedTooling ? { targets: normalizedTooling } : {},
770
787
  ...opts.all !== void 0 ? { all: opts.all } : {},
@@ -935,7 +952,7 @@ async function emitCheckPlan(plan, opts, cwd) {
935
952
  }
936
953
  function registerTopLevelCommands(program, cwd) {
937
954
  program.command("init").description(localize("Initialize the current workspace with recommended configuration", "初始化当前 workspace,并生成推荐配置")).option("--preset <preset>", localize("Initialization preset: minimal or standard", "初始化预设:minimal / standard"), "standard").option("-f, --force", localize("Overwrite existing tooling configuration files", "覆盖已存在的 tooling 配置文件")).option("--overwrite", localize("Overwrite existing managed files", "覆盖受管的已存在文件")).option("-y, --yes", localize("Use defaults without prompting; suitable for CI", "使用默认值跳过所有交互,适合 CI")).action(async (opts) => {
938
- const { init } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
955
+ const { init } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
939
956
  await init(cwd, {
940
957
  ...opts.preset !== void 0 ? { preset: opts.preset } : {},
941
958
  ...opts.force !== void 0 ? { force: opts.force } : {},
@@ -946,7 +963,7 @@ function registerTopLevelCommands(program, cwd) {
946
963
  logger.info(localize("Next: run `pnpm install` and `pnpm build`.", "下一步:运行 `pnpm install` 和 `pnpm build`。"));
947
964
  });
948
965
  program.command("new").description(localize("Create a new package or application", "创建新的 package / app")).argument("[name]").option("-t, --template <template>", localize("Use a template key without prompting", "直接使用指定模板,跳过模板选择")).option("--dry-run", localize("Preview directories and package metadata without writing", "预览将要创建的目录与 package 信息,不写入文件")).option("--json", localize("Output the creation preview as JSON; implies --dry-run", "以 JSON 输出创建预览,隐含 --dry-run")).option("--out <file>", localize("Write the creation preview to a file; implies --dry-run", "把创建预览写入文件,隐含 --dry-run")).action(async (inputName, opts) => {
949
- const { runCreateFlow } = await import("./create-flow-BE4Nd902.mjs");
966
+ const { runCreateFlow } = await import("./create-flow-Ck_U7ePd.mjs");
950
967
  const result = await runCreateFlow(cwd, inputName, {
951
968
  ...opts.template !== void 0 ? { template: opts.template } : {},
952
969
  ...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
@@ -964,10 +981,10 @@ function registerTopLevelCommands(program, cwd) {
964
981
  ...opts.staged !== void 0 ? { staged: opts.staged } : {},
965
982
  ...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
966
983
  };
967
- const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
984
+ const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
968
985
  if (opts.dryRun || opts.json || opts.markdown || opts.out) {
969
986
  if (opts.full) {
970
- const { resolveFullWorkspaceCheckPlan } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
987
+ const { resolveFullWorkspaceCheckPlan } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
971
988
  await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
972
989
  return;
973
990
  }
@@ -978,7 +995,7 @@ function registerTopLevelCommands(program, cwd) {
978
995
  logger.success(localize("Checks finished.", "检查完成。"));
979
996
  });
980
997
  program.command("doctor").description(localize("Diagnose whether the current repository is ready to use", "诊断当前仓库是否适合直接开始使用")).option("--json", localize("Output JSON for CI or scripts", "输出 JSON 报告,方便 CI 或脚本消费")).option("--markdown", localize("Output Markdown for an issue or pull request", "输出 Markdown 报告,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write the diagnostic report to a file", "把诊断报告写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Treat warnings as failures", "把 warning 也视为失败,适合 CI 门禁")).action(async (opts) => {
981
- const { runDoctor } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
998
+ const { runDoctor } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
982
999
  const report = await runDoctor(cwd);
983
1000
  await emitDoctorReport(report, opts, cwd);
984
1001
  if (opts.out || opts.json || opts.markdown) {
@@ -1001,7 +1018,7 @@ function registerTopLevelCommands(program, cwd) {
1001
1018
  logger.success(localize("Doctor finished.", "Doctor 诊断完成。"));
1002
1019
  });
1003
1020
  program.command("upgrade").description(localize("Synchronize standard repository assets and scripts", "同步仓库标准资产与脚本")).option("-i,--interactive", localize("Select managed files interactively", "交互式选择受管文件")).option("-c,--core", localize("Synchronize core configuration without GitHub assets", "仅同步核心配置,跳过 GitHub 相关资产")).option("--outDir <dir>", localize("Output directory", "输出目录")).option("-s,--skip-overwrite", localize("Preserve existing files", "保留已存在文件")).option("-y, --yes", localize("Skip prompts and overwrite drifted managed assets", "跳过交互并覆盖 drifted 标准资产")).option("--overwrite", localize("Overwrite drifted managed assets", "覆盖 drifted 标准资产")).option("--no-overwrite", localize("Preserve drifted managed assets", "不覆盖 drifted 标准资产")).option("--overwrite-release", localize("Overwrite an unmarked custom release workflow", "覆盖未标记的自定义 release workflow")).action(async (opts) => {
1004
- const { upgradeMonorepo } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1021
+ const { upgradeMonorepo } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1005
1022
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1006
1023
  logger.success(localize("Upgrade finished.", "升级完成。"));
1007
1024
  });
@@ -1011,22 +1028,22 @@ function registerTopLevelCommands(program, cwd) {
1011
1028
  function registerVerifyCommands(program, cwd) {
1012
1029
  const verifyCommand = program.command("verify").alias("v").description(localize("Local verification commands", "本地校验工具集"));
1013
1030
  verifyCommand.command("pre-push").description(localize("Run build, test, and tsd checks for pushed changes", "按推送变更范围执行 build/test/tsd 校验")).alias("push").action(async () => {
1014
- const { verifyPrePush } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1031
+ const { verifyPrePush } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1015
1032
  await verifyPrePush({ cwd });
1016
1033
  });
1017
1034
  verifyCommand.command("pre-commit").description(localize("Run lint-staged verification", "执行 lint-staged 校验")).alias("commit").action(async () => {
1018
- const { verifyPreCommit } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1035
+ const { verifyPreCommit } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1019
1036
  await verifyPreCommit({ cwd });
1020
1037
  });
1021
1038
  verifyCommand.command("commit-msg").description(localize("Run commitlint verification", "执行 commitlint 校验")).alias("msg").argument("<edit-file>").action(async (editFile) => {
1022
- const { verifyCommitMsg } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1039
+ const { verifyCommitMsg } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1023
1040
  await verifyCommitMsg({
1024
1041
  cwd,
1025
1042
  editFile
1026
1043
  });
1027
1044
  });
1028
1045
  verifyCommand.command("staged-typecheck").description(localize("Run typecheck in workspaces containing staged files", "按暂存文件所在 workspace 执行 typecheck")).alias("tc").argument("[files...]").action(async (files = []) => {
1029
- const { verifyStagedTypecheck } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1046
+ const { verifyStagedTypecheck } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1030
1047
  verifyStagedTypecheck(files, { cwd });
1031
1048
  });
1032
1049
  }
@@ -1105,12 +1122,12 @@ async function emitWorkspaceList(result, opts) {
1105
1122
  function registerWorkspaceCommands(program, cwd) {
1106
1123
  const workspaceCommand = program.command("workspace").alias("ws").description(localize("Workspace commands", "工作区命令"));
1107
1124
  workspaceCommand.command("upgrade").description(localize("Upgrade or synchronize monorepo packages", "升级/同步 monorepo 相关包")).alias("up").option("-i,--interactive", localize("Select managed files interactively", "交互式选择受管文件")).option("-c,--core", localize("Synchronize core configuration without GitHub assets", "仅同步核心配置,跳过 GitHub 相关资产")).option("--outDir <dir>", localize("Output directory", "输出目录")).option("-s,--skip-overwrite", localize("Preserve existing files", "保留已存在文件")).option("-y, --yes", localize("Skip prompts and overwrite drifted managed assets", "跳过交互并覆盖 drifted 标准资产")).option("--overwrite", localize("Overwrite drifted managed assets", "覆盖 drifted 标准资产")).option("--no-overwrite", localize("Preserve drifted managed assets", "不覆盖 drifted 标准资产")).option("--overwrite-release", localize("Overwrite an unmarked custom release workflow", "覆盖未标记的自定义 release workflow")).action(async (opts) => {
1108
- const { upgradeMonorepo } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1125
+ const { upgradeMonorepo } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1109
1126
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1110
1127
  logger.success(localize("Workspace upgrade finished.", "Workspace 升级完成。"));
1111
1128
  });
1112
1129
  workspaceCommand.command("init").description(localize("Initialize workspace metadata and repository files", "初始化工作区元信息(README、package.json、pnpm intent、issue template)")).alias("i").action(async () => {
1113
- const { initMetadata } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1130
+ const { initMetadata } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1114
1131
  await initMetadata(cwd);
1115
1132
  logger.success(localize("Workspace initialization finished.", "Workspace 初始化完成。"));
1116
1133
  });
@@ -1123,7 +1140,7 @@ function registerWorkspaceCommands(program, cwd) {
1123
1140
  }), opts);
1124
1141
  });
1125
1142
  workspaceCommand.command("clean").description(localize("Remove selected workspace packages", "清除选中的包")).alias("rm").option("-y, --yes", localize("Skip prompts and clean immediately", "跳过交互直接清理(等价 autoConfirm)")).option("--include-private", localize("Include private packages", "包含 private 包")).option("--pinned-version <version>", localize("Override the repoctl version written to the root package", "覆盖写入的 repoctl 版本")).action(async (opts) => {
1126
- const { cleanProjects } = await import("./commands-BqUFCJA_.mjs").then((n) => n.t);
1143
+ const { cleanProjects } = await import("./commands-CezFU4i0.mjs").then((n) => n.t);
1127
1144
  await cleanProjects(cwd, normalizeCleanOptions(opts));
1128
1145
  logger.success(localize("Workspace cleanup finished.", "Workspace 清理完成。"));
1129
1146
  });
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
2
  import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries } from "./workspace-MCKewElu.mjs";
3
- import { b as isIgnorableFsError, c as devDependencies$1, d as localize, i as packageDir, m as logger, n as assetsDir, o as templatesDir, s as dependencies, t as initToolingTargets, u as version$1, y as fs$1 } from "./types-BS9l6MOk.mjs";
3
+ import { b as fs$1, c as devDependencies$1, d as localize, h as logger, i as packageDir, n as assetsDir, o as templatesDir, p as resolveRepoctlLocale, s as dependencies, t as initToolingTargets, u as version$1, x as isIgnorableFsError } from "./types-DC-VClVk.mjs";
4
4
  import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, s as resolveCommandConfig } from "./config-p842Knhq.mjs";
5
5
  import { f as defineTsconfigConfig } from "./tooling-CdZRpvYw.mjs";
6
6
  import gitUrlParse from "git-url-parse";
@@ -8,7 +8,7 @@ import { simpleGit } from "simple-git";
8
8
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
9
9
  import path from "pathe";
10
10
  import process from "node:process";
11
- import { access, readFile, readdir, realpath } from "node:fs/promises";
11
+ import { access, readFile, readdir, realpath, rm } from "node:fs/promises";
12
12
  import { execFileSync, spawnSync } from "node:child_process";
13
13
  import fs from "node:fs";
14
14
  import path$1 from "node:path";
@@ -1336,6 +1336,9 @@ async function migrateLegacyVersioning(workspaceDir) {
1336
1336
  //#endregion
1337
1337
  //#region src/commands/doctor/release.ts
1338
1338
  const releaseCiMinimumVersion = "5.1.0";
1339
+ function hasValidFixedGroups(fixed) {
1340
+ return fixed === void 0 || Array.isArray(fixed) && fixed.every((group) => Array.isArray(group) && group.length > 0 && group.every((name) => typeof name === "string" && name.trim().length > 0));
1341
+ }
1339
1342
  function check(id, title, status, detail, fix) {
1340
1343
  return {
1341
1344
  id,
@@ -1376,9 +1379,9 @@ async function collectReleaseChecks(workspaceDir, pkgJson) {
1376
1379
  else checks.push(check("release-cli-version", "release CLI version", "pass", localize(`repoctl ${packageVersion} supports release ci.`, `repoctl 版本 ${packageVersion} 支持 release ci。`)));
1377
1380
  try {
1378
1381
  const workspace = YAML.parse(await readFile(path.join(workspaceDir, "pnpm-workspace.yaml"), "utf8"));
1379
- const hasFixed = Array.isArray(workspace.versioning?.fixed) && workspace.versioning.fixed.length > 0;
1382
+ const hasValidFixed = hasValidFixedGroups(workspace.versioning?.fixed);
1380
1383
  const hasRepositoryChangelog = workspace.versioning?.changelog?.storage === "repository";
1381
- checks.push(hasFixed && hasRepositoryChangelog ? check("release-versioning-config", "release versioning config", "pass", localize("pnpm fixed groups and repository changelog storage are configured.", "pnpm fixed group 与 repository changelog 配置完整。")) : check("release-versioning-config", "release versioning config", "warn", localize("pnpm-workspace.yaml is missing required fixed groups or repository changelog storage.", "pnpm-workspace.yaml 缺少 release 所需的 fixed 或 repository changelog 配置。"), localize("Run repo upgrade --yes to synchronize pnpm versioning configuration.", "运行 repo upgrade --yes 同步 pnpm versioning 配置。")));
1384
+ checks.push(hasValidFixed && hasRepositoryChangelog ? check("release-versioning-config", "release versioning config", "pass", localize("pnpm fixed groups are valid and repository changelog storage is configured.", "pnpm fixed group 配置合法,且已配置 repository changelog。")) : check("release-versioning-config", "release versioning config", "warn", localize("pnpm-workspace.yaml has invalid fixed groups or is missing repository changelog storage.", "pnpm-workspace.yaml 的 fixed group 配置不合法,或缺少 repository changelog 配置。"), localize("Run repo upgrade --yes to synchronize pnpm versioning configuration.", "运行 repo upgrade --yes 同步 pnpm versioning 配置。")));
1382
1385
  } catch {
1383
1386
  checks.push(check("release-versioning-config", "release versioning config", "warn", localize("Unable to read versioning configuration from pnpm-workspace.yaml.", "无法读取 pnpm-workspace.yaml 的 versioning 配置。"), localize("Run repo upgrade --yes to synchronize pnpm versioning configuration.", "运行 repo upgrade --yes 同步 pnpm versioning 配置。")));
1384
1387
  }
@@ -1872,6 +1875,7 @@ const packageDependencies = {
1872
1875
  "tooling:build": "turbo run build --filter=@icebreakers/monorepo --filter=repoctl",
1873
1876
  "dev": "turbo run dev --parallel",
1874
1877
  "test": "vitest run",
1878
+ "test:packaged-doctor": "node scripts/smoke-packaged-doctor.mjs",
1875
1879
  "test:dev": "vitest",
1876
1880
  "lint": "pnpm run tooling:build && turbo run lint",
1877
1881
  "tsd": "turbo run tsd",
@@ -2250,6 +2254,15 @@ const categoryTitles = {
2250
2254
  maintenance: "🧰 Maintenance",
2251
2255
  other: "🧩 Other Changes"
2252
2256
  };
2257
+ const zhCNCategoryTitles = {
2258
+ breaking: "🚨 破坏性变更",
2259
+ features: "🚀 新功能",
2260
+ fixes: "🐞 问题修复",
2261
+ performance: "🏎 性能优化",
2262
+ docs: "📚 文档",
2263
+ maintenance: "🧰 维护",
2264
+ other: "🧩 其他变更"
2265
+ };
2253
2266
  function readVersionSection(changelog, version) {
2254
2267
  const versions = [...changelog.matchAll(/^## ([^\n]+)$/gm)];
2255
2268
  const index = versions.findIndex((match) => match[1] === version);
@@ -2483,6 +2496,12 @@ function buildEntries(release, commits) {
2483
2496
  }
2484
2497
  //#endregion
2485
2498
  //#region src/commands/release/notes/render.ts
2499
+ function isChinese(metadata) {
2500
+ return (metadata.locale ?? resolveRepoctlLocale()) === "zh-CN";
2501
+ }
2502
+ function localized(metadata, english, simplifiedChinese) {
2503
+ return isChinese(metadata) ? simplifiedChinese : english;
2504
+ }
2486
2505
  function formatReferenceLinks(entry, metadata) {
2487
2506
  const repository = metadata.repository && /^[^/]+\/[^/]+$/.test(metadata.repository) ? metadata.repository : void 0;
2488
2507
  const serverUrl = (metadata.serverUrl || "https://github.com").replace(/\/$/, "");
@@ -2503,7 +2522,7 @@ function formatCategoryEntries(entries, category, metadata, headingLevel, linkNp
2503
2522
  const matching = entries.filter((entry) => entry.category === category);
2504
2523
  if (!matching.length) return [];
2505
2524
  return [
2506
- `${"#".repeat(headingLevel)} ${categoryTitles[category]}`,
2525
+ `${"#".repeat(headingLevel)} ${isChinese(metadata) ? zhCNCategoryTitles[category] : categoryTitles[category]}`,
2507
2526
  "",
2508
2527
  ...matching.map((entry) => formatEntry(entry, metadata, linkNpmVersion))
2509
2528
  ];
@@ -2512,23 +2531,23 @@ function formatContributor(value) {
2512
2531
  if (value.startsWith("@")) return value;
2513
2532
  return /^[\w-]+$/.test(value) ? `@${value}` : value;
2514
2533
  }
2515
- function formatContributors(contributors) {
2534
+ function formatContributors(contributors, metadata) {
2516
2535
  const unique = [...new Set(contributors.map((value) => value.trim()).filter((value) => value && !isAutomationContributor(value)))].sort((a, b) => a.localeCompare(b));
2517
2536
  return unique.length ? [
2518
- "## ❤️ Contributors",
2537
+ `## ❤️ ${localized(metadata, "Contributors", "贡献者")}`,
2519
2538
  "",
2520
- `Thanks to ${unique.map(formatContributor).join(" · ")}`
2539
+ `${localized(metadata, "Thanks to", "感谢")} ${unique.map(formatContributor).join(" · ")}`
2521
2540
  ] : [];
2522
2541
  }
2523
2542
  function formatVersion(version, npmUrl) {
2524
2543
  return npmUrl ? `[\`${version}\`](${npmUrl})` : `\`${version}\``;
2525
2544
  }
2526
- function formatPackages(packages, linkNpmVersion) {
2545
+ function formatPackages(packages, linkNpmVersion, metadata) {
2527
2546
  if (!packages.length) return [];
2528
2547
  return [
2529
- "## Packages",
2548
+ `## ${localized(metadata, "Packages", "包")}`,
2530
2549
  "",
2531
- "| Package | From | To |",
2550
+ `| ${localized(metadata, "Package", "包")} | ${localized(metadata, "From", "原版本")} | ${localized(metadata, "To", "新版本")} |`,
2532
2551
  "| --- | --- | --- |",
2533
2552
  ...packages.map((pkg) => {
2534
2553
  const previous = pkg.previousVersion ? formatVersion(pkg.previousVersion, pkg.previousNpmUrl) : "—";
@@ -2538,31 +2557,33 @@ function formatPackages(packages, linkNpmVersion) {
2538
2557
  ];
2539
2558
  }
2540
2559
  function renderReleasePullRequest(document, metadata = {}) {
2560
+ const packageWord = isChinese(metadata) ? `${document.packages.length} 个包更新` : `${document.packages.length} package${document.packages.length === 1 ? "" : "s"} updated`;
2561
+ const changeWord = isChinese(metadata) ? `${document.entries.length} 项变更` : `${document.entries.length} change${document.entries.length === 1 ? "" : "s"}`;
2541
2562
  const sections = [
2542
- "# Release Notes",
2563
+ `# ${localized(metadata, "Release Notes", "发布说明")}`,
2543
2564
  "",
2544
- `> ${`${document.packages.length} package${document.packages.length === 1 ? "" : "s"}`} updated · ${`${document.entries.length} change${document.entries.length === 1 ? "" : "s"}`}`
2565
+ `> ${packageWord} · ${changeWord}`
2545
2566
  ];
2546
2567
  for (const category of categoryOrder.filter((category) => category !== "maintenance")) {
2547
2568
  const section = formatCategoryEntries(document.entries, category, metadata, 2, false);
2548
2569
  if (section.length) sections.push("", "", ...section);
2549
2570
  }
2550
2571
  const maintenance = formatCategoryEntries(document.entries, "maintenance", metadata, 2, false);
2551
- if (maintenance.length) sections.push("", "", "<details>", "<summary>🧰 Maintenance</summary>", "", ...maintenance.slice(2), "", "</details>");
2552
- sections.push("", "", ...formatPackages(document.packages, false));
2553
- sections.push("", "", ...formatContributors(document.contributors));
2572
+ if (maintenance.length) sections.push("", "", "<details>", `<summary>${localized(metadata, "🧰 Maintenance", "🧰 维护")}</summary>`, "", ...maintenance.slice(2), "", "</details>");
2573
+ sections.push("", "", ...formatPackages(document.packages, false, metadata));
2574
+ sections.push("", "", ...formatContributors(document.contributors, metadata));
2554
2575
  return sections.join("\n").replace(/\n{3,}/g, "\n\n").trim();
2555
2576
  }
2556
2577
  function renderGitHubRelease(document, metadata = {}) {
2557
- if (!document.entries.length) return "No significant changes.";
2578
+ if (!document.entries.length) return localized(metadata, "No significant changes.", "没有显著变更。");
2558
2579
  const sections = [];
2559
2580
  for (const category of categoryOrder) {
2560
2581
  const section = formatCategoryEntries(document.entries, category, metadata, 3, true);
2561
2582
  if (section.length) sections.push(...sections.length ? ["", ...section] : section);
2562
2583
  }
2563
2584
  const contributors = [...new Set(document.contributors)].filter((value) => !isAutomationContributor(value)).sort((a, b) => a.localeCompare(b));
2564
- if (contributors.length) sections.push("", "### ❤️ Contributors", "", `Thanks to ${contributors.map(formatContributor).join(" · ")}`);
2565
- if (document.compareUrls.length) sections.push("", `##### [View changes on GitHub](${document.compareUrls[0]})`);
2585
+ if (contributors.length) sections.push("", `### ❤️ ${localized(metadata, "Contributors", "贡献者")}`, "", `${localized(metadata, "Thanks to", "感谢")} ${contributors.map(formatContributor).join(" · ")}`);
2586
+ if (document.compareUrls.length) sections.push("", `##### [${localized(metadata, "View changes on GitHub", "在 GitHub 查看变更")}](${document.compareUrls[0]})`);
2566
2587
  return sections.join("\n");
2567
2588
  }
2568
2589
  //#endregion
@@ -2577,10 +2598,14 @@ var ReleaseCommandError = class extends Error {
2577
2598
  };
2578
2599
  //#endregion
2579
2600
  //#region src/commands/release/shared.ts
2601
+ function getReleaseEnv(options) {
2602
+ return options.env ?? process.env;
2603
+ }
2580
2604
  function run(command, args, options) {
2581
2605
  const result = (options.spawn ?? spawnSync)(command, args, {
2582
2606
  cwd: options.cwd,
2583
2607
  encoding: "utf8",
2608
+ env: getReleaseEnv(options),
2584
2609
  shell: false,
2585
2610
  stdio: "inherit"
2586
2611
  });
@@ -2590,6 +2615,7 @@ function capture(command, args, options) {
2590
2615
  const result = (options.spawn ?? spawnSync)(command, args, {
2591
2616
  cwd: options.cwd,
2592
2617
  encoding: "utf8",
2618
+ env: getReleaseEnv(options),
2593
2619
  shell: false,
2594
2620
  stdio: [
2595
2621
  "ignore",
@@ -2600,9 +2626,6 @@ function capture(command, args, options) {
2600
2626
  if (result.status !== 0) throw new ReleaseCommandError(`command failed: ${command} ${args.join(" ")}`, result.status ?? 1);
2601
2627
  return result.stdout?.toString().trim() ?? "";
2602
2628
  }
2603
- function getReleaseEnv(options) {
2604
- return options.env ?? process.env;
2605
- }
2606
2629
  function hasGitChanges(options) {
2607
2630
  return (options.spawn ?? spawnSync)("git", [
2608
2631
  "diff",
@@ -2668,10 +2691,8 @@ async function assertStableLaneAssignments(options) {
2668
2691
  const active = Object.entries(assignments).filter(([, lane]) => lane !== "main");
2669
2692
  if (active.length) throw new ReleaseCommandError(`stable releases require all packages on the main lane, found ${active.map(([name, lane]) => `${name}:${lane}`).join(", ")}`);
2670
2693
  }
2671
- function runQualityChecks(options) {
2672
- run("pnpm", ["run", "build"], options);
2673
- run("pnpm", ["run", "lint"], options);
2674
- run("pnpm", ["run", "test"], options);
2694
+ async function clearPublishSummary(cwd) {
2695
+ await rm(path.join(cwd, "pnpm-publish-summary.json"), { force: true });
2675
2696
  }
2676
2697
  function parsePublishSummary(content) {
2677
2698
  let parsed;
@@ -2818,7 +2839,12 @@ async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
2818
2839
  }
2819
2840
  function buildGitHubReleaseBodyFromChangelog(packageName, packageVersion, changelog, metadata = {}) {
2820
2841
  const section = readVersionSection(changelog, packageVersion);
2821
- if (!section?.content) return "No significant changes.";
2842
+ if (!section?.content) return renderGitHubRelease({
2843
+ packages: [],
2844
+ entries: [],
2845
+ contributors: [],
2846
+ compareUrls: []
2847
+ }, metadata);
2822
2848
  return renderGitHubRelease(buildReleaseNoteDocumentFromReleases([{
2823
2849
  name: packageName,
2824
2850
  version: packageVersion,
@@ -3040,6 +3066,47 @@ var GitHubClient = class {
3040
3066
  }
3041
3067
  };
3042
3068
  //#endregion
3069
+ //#region src/commands/release/hooks.ts
3070
+ const defaultQualityScripts = [
3071
+ "build",
3072
+ "lint",
3073
+ "test"
3074
+ ];
3075
+ function validateScriptName(script) {
3076
+ const normalizedScript = script.trim();
3077
+ if (!normalizedScript) throw new ReleaseCommandError("release script name must not be empty");
3078
+ return normalizedScript;
3079
+ }
3080
+ function runScripts(scripts, options, extraEnv) {
3081
+ for (const script of scripts) run("pnpm", ["run", validateScriptName(script)], {
3082
+ ...options,
3083
+ ...extraEnv ? { env: {
3084
+ ...options.env ?? process.env,
3085
+ ...extraEnv
3086
+ } } : {}
3087
+ });
3088
+ }
3089
+ function runQualityScripts(options) {
3090
+ runScripts(options.config?.qualityScripts ?? defaultQualityScripts, options);
3091
+ runScripts(options.config?.hooks?.verify ?? [], options);
3092
+ }
3093
+ function runReleaseHooks(phase, options) {
3094
+ runScripts(options.config?.hooks?.[phase] ?? [], options);
3095
+ }
3096
+ function runAfterPublishHooks(packages, options) {
3097
+ if (!packages.length) return;
3098
+ const extraEnv = {
3099
+ REPO_RELEASE_PUBLISHED_PACKAGES: JSON.stringify(packages),
3100
+ REPO_RELEASE_PUBLISH_SUMMARY: path.resolve(options.cwd, "pnpm-publish-summary.json")
3101
+ };
3102
+ for (const hook of options.config?.hooks?.afterPublish ?? []) try {
3103
+ runScripts([hook.script], options, extraEnv);
3104
+ } catch (error) {
3105
+ if (!hook.continueOnError) throw error;
3106
+ logger.warn(`release afterPublish hook failed and was ignored: ${hook.script}`);
3107
+ }
3108
+ }
3109
+ //#endregion
3043
3110
  //#region src/commands/release/types.ts
3044
3111
  const prereleaseBranches = /* @__PURE__ */ new Set([
3045
3112
  "alpha",
@@ -3053,13 +3120,15 @@ async function releasePrerelease(options) {
3053
3120
  const branch = resolveBranch(options);
3054
3121
  if (!prereleaseBranches.has(branch)) throw new ReleaseCommandError(`repo release pre is only allowed on alpha, beta, rc, or next branches, got ${branch}`);
3055
3122
  await assertLaneAssignments(branch, options);
3056
- runQualityChecks(options);
3057
3123
  if (!await hasPendingIntents(options.cwd)) return;
3124
+ runReleaseHooks("beforeVersion", options);
3125
+ runQualityScripts(options);
3058
3126
  run("pnpm", [
3059
3127
  "version",
3060
3128
  "-r",
3061
3129
  "--no-git-checks"
3062
3130
  ], options);
3131
+ runReleaseHooks("afterVersion", options);
3063
3132
  if (!hasGitChanges(options)) return;
3064
3133
  run("git", ["add", "-A"], options);
3065
3134
  run("git", [
@@ -3067,6 +3136,8 @@ async function releasePrerelease(options) {
3067
3136
  "-m",
3068
3137
  `chore(release): ${branch} [skip ci]`
3069
3138
  ], options);
3139
+ runReleaseHooks("beforePublish", options);
3140
+ await clearPublishSummary(options.cwd);
3070
3141
  run("pnpm", [
3071
3142
  "publish",
3072
3143
  "-r",
@@ -3082,6 +3153,7 @@ async function releasePrerelease(options) {
3082
3153
  "origin",
3083
3154
  `HEAD:${branch}`
3084
3155
  ], options);
3156
+ return readPublishSummary(options.cwd);
3085
3157
  }
3086
3158
  async function enterPrerelease(tag, options) {
3087
3159
  if (!prereleaseBranches.has(tag)) throw new ReleaseCommandError(`unknown prerelease lane ${tag}; expected alpha, beta, rc, or next`);
@@ -3096,20 +3168,25 @@ async function prepareStable(options) {
3096
3168
  const branch = resolveBranch(options);
3097
3169
  if (branch !== "main") throw new ReleaseCommandError(`repo release stable prepare is only allowed on main, got ${branch}`);
3098
3170
  await assertStableLaneAssignments(options);
3099
- runQualityChecks(options);
3100
3171
  if (!await hasPendingIntents(options.cwd)) return false;
3172
+ runReleaseHooks("beforeVersion", options);
3173
+ runQualityScripts(options);
3101
3174
  run("pnpm", [
3102
3175
  "version",
3103
3176
  "-r",
3104
3177
  "--no-git-checks"
3105
3178
  ], options);
3179
+ runReleaseHooks("afterVersion", options);
3106
3180
  return hasGitChanges(options);
3107
3181
  }
3108
3182
  async function publishStable(options) {
3109
3183
  const branch = resolveBranch(options);
3110
3184
  if (branch !== "main") throw new ReleaseCommandError(`repo release stable publish is only allowed on main, got ${branch}`);
3111
3185
  await assertStableLaneAssignments(options);
3112
- runQualityChecks(options);
3186
+ if (await hasPendingIntents(options.cwd)) throw new ReleaseCommandError("stable publish found unconsumed change intents; prepare and merge the Release PR before publishing");
3187
+ runQualityScripts(options);
3188
+ runReleaseHooks("beforePublish", options);
3189
+ await clearPublishSummary(options.cwd);
3113
3190
  run("pnpm", [
3114
3191
  "publish",
3115
3192
  "-r",
@@ -3117,10 +3194,11 @@ async function publishStable(options) {
3117
3194
  "--provenance",
3118
3195
  "--no-git-checks"
3119
3196
  ], options);
3197
+ return readPublishSummary(options.cwd);
3120
3198
  }
3121
3199
  /** Compatibility entry point retained for existing generated repositories. */
3122
3200
  async function releaseStable(options) {
3123
- await publishStable(options);
3201
+ return publishStable(options);
3124
3202
  }
3125
3203
  //#endregion
3126
3204
  //#region src/commands/release/ci.ts
@@ -3158,6 +3236,9 @@ function resolveGitHub(options) {
3158
3236
  function resolveTarget(options) {
3159
3237
  return getReleaseEnv(options)["GITHUB_SHA"]?.trim() || capture("git", ["rev-parse", "HEAD"], options);
3160
3238
  }
3239
+ function resolveReleaseLocale(options) {
3240
+ return resolveRepoctlLocale({ env: getReleaseEnv(options) });
3241
+ }
3161
3242
  function formatPublishedPackageSummary(packages) {
3162
3243
  return ["Published packages:", ...packages.length ? packages.map((pkg) => ` - ${pkg.name}@${pkg.version}`) : [" (none)"]].join("\n");
3163
3244
  }
@@ -3170,6 +3251,7 @@ async function publishMetadata(packages, options, prerelease = false) {
3170
3251
  const target = resolveTarget(options);
3171
3252
  const releaseEnv = getReleaseEnv(options);
3172
3253
  const metadata = {
3254
+ locale: resolveReleaseLocale(options),
3173
3255
  ...releaseEnv["GITHUB_REPOSITORY"] ? { repository: releaseEnv["GITHUB_REPOSITORY"] } : {},
3174
3256
  ...releaseEnv["GITHUB_SERVER_URL"] ? { serverUrl: releaseEnv["GITHUB_SERVER_URL"] } : {}
3175
3257
  };
@@ -3265,6 +3347,7 @@ async function createReleasePullRequest(options) {
3265
3347
  const github = resolveGitHub(options);
3266
3348
  const releaseEnv = getReleaseEnv(options);
3267
3349
  const metadata = {
3350
+ locale: resolveReleaseLocale(options),
3268
3351
  commits: sourceCommits,
3269
3352
  ...releaseEnv["GITHUB_REPOSITORY"] ? { repository: releaseEnv["GITHUB_REPOSITORY"] } : {},
3270
3353
  ...releaseEnv["GITHUB_SERVER_URL"] ? { serverUrl: releaseEnv["GITHUB_SERVER_URL"] } : {}
@@ -3274,7 +3357,7 @@ async function createReleasePullRequest(options) {
3274
3357
  await github.ensurePullRequest({
3275
3358
  head: releaseBranch,
3276
3359
  base: "main",
3277
- title: "chore(release): version packages",
3360
+ title: resolveReleaseLocale(options) === "zh-CN" ? "chore(release): 更新包版本" : "chore(release): version packages",
3278
3361
  body: renderReleasePullRequest(noteDocument, metadata)
3279
3362
  });
3280
3363
  await github.closeLegacyReleasePullRequests?.({
@@ -3287,6 +3370,7 @@ async function recoverUnpublished(options) {
3287
3370
  const packageName = options.packageName || getReleaseEnv(options)["REPO_RELEASE_PACKAGE"]?.trim();
3288
3371
  const packageVersion = options.packageVersion || getReleaseEnv(options)["REPO_RELEASE_VERSION"]?.trim();
3289
3372
  if (!packageName || !packageVersion) throw new ReleaseCommandError("publish-unpublished requires REPO_RELEASE_PACKAGE and REPO_RELEASE_VERSION");
3373
+ if (await hasPendingIntents(options.cwd)) throw new ReleaseCommandError("publish-unpublished found unconsumed change intents; prepare and merge the Release PR before publishing");
3290
3374
  const actualVersion = capture("pnpm", [
3291
3375
  "--filter",
3292
3376
  packageName,
@@ -3296,6 +3380,9 @@ async function recoverUnpublished(options) {
3296
3380
  "require('./package.json').version"
3297
3381
  ], options);
3298
3382
  if (actualVersion !== packageVersion) throw new ReleaseCommandError(`expected ${packageName}@${packageVersion} in the workspace, found ${actualVersion}`);
3383
+ runQualityScripts(options);
3384
+ runReleaseHooks("beforePublish", options);
3385
+ await clearPublishSummary(options.cwd);
3299
3386
  run("pnpm", [
3300
3387
  "publish",
3301
3388
  "-r",
@@ -3310,7 +3397,10 @@ async function recoverUnpublished(options) {
3310
3397
  `${packageName}@${packageVersion}`,
3311
3398
  "version"
3312
3399
  ], options) !== packageVersion) throw new ReleaseCommandError(`npm did not report ${packageName}@${packageVersion} after recovery`);
3313
- await publishMetadata(await readPublishSummary(options.cwd), options);
3400
+ const packages = await readPublishSummary(options.cwd);
3401
+ await publishMetadata(packages, options);
3402
+ runAfterPublishHooks(packages, options);
3403
+ return packages;
3314
3404
  }
3315
3405
  function resolveMode(options) {
3316
3406
  const requested = options.mode || getReleaseEnv(options)["REPO_RELEASE_MODE"]?.trim();
@@ -3324,28 +3414,30 @@ async function releaseCi(options) {
3324
3414
  return;
3325
3415
  }
3326
3416
  if (mode === "publish") {
3327
- await publishStable(options);
3328
- await publishMetadata(await readPublishSummary(options.cwd), options);
3329
- return;
3330
- }
3331
- if (mode === "publish-unpublished") {
3332
- await recoverUnpublished(options);
3333
- return;
3417
+ const packages = await publishStable(options);
3418
+ await publishMetadata(packages, options);
3419
+ runAfterPublishHooks(packages, options);
3420
+ return packages;
3334
3421
  }
3422
+ if (mode === "publish-unpublished") return recoverUnpublished(options);
3335
3423
  if (mode !== "auto") throw new ReleaseCommandError(`unknown release CI mode ${mode}; expected auto, prepare, publish, or publish-unpublished`);
3336
3424
  const branch = resolveBranch(options);
3337
3425
  if (prereleaseBranches.has(branch)) {
3338
- await releasePrerelease(options);
3339
- await publishMetadata(await readPublishSummary(options.cwd), options, true);
3340
- return;
3426
+ const packages = await releasePrerelease(options);
3427
+ if (!packages) return;
3428
+ await publishMetadata(packages, options, true);
3429
+ runAfterPublishHooks(packages, options);
3430
+ return packages;
3341
3431
  }
3342
3432
  if (branch !== "main") throw new ReleaseCommandError(`repo release ci only supports main, alpha, beta, rc, or next branches, got ${branch}`);
3343
3433
  if (await hasPendingIntents(options.cwd)) {
3344
3434
  await createReleasePullRequest(options);
3345
3435
  return;
3346
3436
  }
3347
- await publishStable(options);
3348
- await publishMetadata(await readPublishSummary(options.cwd), options);
3437
+ const packages = await publishStable(options);
3438
+ await publishMetadata(packages, options);
3439
+ runAfterPublishHooks(packages, options);
3440
+ return packages;
3349
3441
  }
3350
3442
  //#endregion
3351
3443
  //#region src/commands/release/repair.ts
@@ -1,5 +1,5 @@
1
- import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-BqUFCJA_.mjs";
2
- import { d as localize, m as logger, y as fs } from "./types-BS9l6MOk.mjs";
1
+ import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-CezFU4i0.mjs";
2
+ import { b as fs, d as localize, h as logger } from "./types-DC-VClVk.mjs";
3
3
  import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
@@ -591,6 +591,52 @@ interface HuskyToolingConfig {
591
591
  */
592
592
  commitMsgCommand?: string;
593
593
  }
594
+ interface ReleaseAfterPublishHookConfig {
595
+ /** package.json 中要通过 `pnpm run` 执行的脚本名。 */
596
+ script: string;
597
+ /**
598
+ * 脚本失败时是否只记录警告并继续。
599
+ * @default false
600
+ */
601
+ continueOnError?: boolean;
602
+ }
603
+ interface ReleaseCommandConfig {
604
+ /**
605
+ * version 与 publish 阶段执行的根 package.json 校验脚本。
606
+ * 配置后完整替换内置的 build、lint、test。
607
+ * @default ['build', 'lint', 'test']
608
+ */
609
+ qualityScripts?: string[];
610
+ hooks?: {
611
+ /**
612
+ * qualityScripts 通过后追加执行的校验脚本。
613
+ * 任一脚本失败都会中止版本或发布流程。
614
+ * @default []
615
+ */
616
+ verify?: string[];
617
+ /**
618
+ * pnpm version 前执行的根 package.json 脚本。
619
+ * @default []
620
+ */
621
+ beforeVersion?: string[];
622
+ /**
623
+ * pnpm version 后执行的根 package.json 脚本。
624
+ * @default []
625
+ */
626
+ afterVersion?: string[];
627
+ /**
628
+ * pnpm publish 前执行的根 package.json 脚本。
629
+ * @default []
630
+ */
631
+ beforePublish?: string[];
632
+ /**
633
+ * npm metadata 与 GitHub Release 处理完成后执行的根 package.json 脚本。
634
+ * 仅在确有 npm 包发布后执行。
635
+ * @default []
636
+ */
637
+ afterPublish?: ReleaseAfterPublishHookConfig[];
638
+ };
639
+ }
594
640
  /**
595
641
  * `repoctl.config.ts` 中 `tooling` 总配置。
596
642
  *
@@ -622,6 +668,7 @@ interface MonorepoConfig {
622
668
  upgrade?: UpgradeCommandConfig;
623
669
  init?: InitCommandConfig;
624
670
  mirror?: MirrorCommandConfig;
671
+ release?: ReleaseCommandConfig;
625
672
  };
626
673
  /**
627
674
  * 按工程化能力分类的可选配置。
@@ -971,4 +1018,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
971
1018
  */
972
1019
  declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
973
1020
  //#endregion
974
- export { initTooling as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, StylelintToolingConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, UpgradeCommandConfig as J, ToolingConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, initMetadata as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, VitestToolingConfig as X, VitestProjectToolingConfig as Y, init as Z, createMonorepoEslintConfig as _, CliOpts as _t, MonorepoCommitlintConfig as a, getCreateChoices as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, templateMap as ct, MonorepoVitestConfigOptions as d, GenerateAgenticTemplateOptions as dt, normalizeInitToolingTargets as et, MonorepoVitestConfigOverrides as f, createTimestampFolderName as ft, createMonorepoCommitlintConfig as g, loadAgenticTasks as gt, MonorepoVitestProjectConfigResult as h, generateAgenticTemplates as ht, DefineVitestProjectConfigOptions as i, CreateNewProjectPlan as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, AgenticTemplateFormat as lt, MonorepoVitestProjectConfigOptions as m, generateAgenticTemplate as mt, DefineEslintConfigOptions as n, createNewProject as nt, MonorepoEslintConfig as o, getTemplateMap as ot, MonorepoVitestConfigResult as p, defaultAgenticBaseDir as pt, TsconfigToolingConfig as q, DefineVitestConfigOptions as r, CreateNewProjectOptions as rt, MonorepoLintStagedConfig as s, resolveCreateNewProjectPlan as st, DefineConfigOptions as t, initToolingTargets as tt, MonorepoTsconfig as u, AgenticTemplateTask as ut, createMonorepoLintStagedConfig as v, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, EslintToolingConfig as z };
1021
+ export { init as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, ReleaseAfterPublishHookConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, ToolingConfig as J, ReleaseCommandConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, VitestToolingConfig as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, UpgradeCommandConfig as X, TsconfigToolingConfig as Y, VitestProjectToolingConfig as Z, createMonorepoEslintConfig as _, generateAgenticTemplates as _t, MonorepoCommitlintConfig as a, CreateNewProjectOptions as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, getTemplateMap as ct, MonorepoVitestConfigOptions as d, AgenticTemplateFormat as dt, initMetadata as et, MonorepoVitestConfigOverrides as f, AgenticTemplateTask as ft, createMonorepoCommitlintConfig as g, generateAgenticTemplate as gt, MonorepoVitestProjectConfigResult as h, defaultAgenticBaseDir as ht, DefineVitestProjectConfigOptions as i, createNewProject as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, resolveCreateNewProjectPlan as lt, MonorepoVitestProjectConfigOptions as m, createTimestampFolderName as mt, DefineEslintConfigOptions as n, normalizeInitToolingTargets as nt, MonorepoEslintConfig as o, CreateNewProjectPlan as ot, MonorepoVitestConfigResult as p, GenerateAgenticTemplateOptions as pt, StylelintToolingConfig as q, DefineVitestConfigOptions as r, initToolingTargets as rt, MonorepoLintStagedConfig as s, getCreateChoices as st, DefineConfigOptions as t, initTooling as tt, MonorepoTsconfig as u, templateMap as ut, createMonorepoLintStagedConfig as v, loadAgenticTasks as vt, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, CliOpts as yt, EslintToolingConfig as z };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as initTooling, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as StylelintToolingConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as UpgradeCommandConfig, K as ToolingConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as initMetadata, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as VitestToolingConfig, Y as VitestProjectToolingConfig, Z as init, _ as createMonorepoEslintConfig, _t as CliOpts, a as MonorepoCommitlintConfig, at as getCreateChoices, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as templateMap, d as MonorepoVitestConfigOptions, dt as GenerateAgenticTemplateOptions, et as normalizeInitToolingTargets, f as MonorepoVitestConfigOverrides, ft as createTimestampFolderName, g as createMonorepoCommitlintConfig, gt as loadAgenticTasks, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplates, i as DefineVitestProjectConfigOptions, it as CreateNewProjectPlan, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as AgenticTemplateFormat, m as MonorepoVitestProjectConfigOptions, mt as generateAgenticTemplate, n as DefineEslintConfigOptions, nt as createNewProject, o as MonorepoEslintConfig, ot as getTemplateMap, p as MonorepoVitestConfigResult, pt as defaultAgenticBaseDir, q as TsconfigToolingConfig, r as DefineVitestConfigOptions, rt as CreateNewProjectOptions, s as MonorepoLintStagedConfig, st as resolveCreateNewProjectPlan, t as DefineConfigOptions, tt as initToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateTask, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-B0fwhqup.mjs";
1
+ import { $ as init, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as ReleaseAfterPublishHookConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as ToolingConfig, K as ReleaseCommandConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as VitestToolingConfig, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as UpgradeCommandConfig, Y as TsconfigToolingConfig, Z as VitestProjectToolingConfig, _ as createMonorepoEslintConfig, _t as generateAgenticTemplates, a as MonorepoCommitlintConfig, at as CreateNewProjectOptions, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as getTemplateMap, d as MonorepoVitestConfigOptions, dt as AgenticTemplateFormat, et as initMetadata, f as MonorepoVitestConfigOverrides, ft as AgenticTemplateTask, g as createMonorepoCommitlintConfig, gt as generateAgenticTemplate, h as MonorepoVitestProjectConfigResult, ht as defaultAgenticBaseDir, i as DefineVitestProjectConfigOptions, it as createNewProject, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as resolveCreateNewProjectPlan, m as MonorepoVitestProjectConfigOptions, mt as createTimestampFolderName, n as DefineEslintConfigOptions, nt as normalizeInitToolingTargets, o as MonorepoEslintConfig, ot as CreateNewProjectPlan, p as MonorepoVitestConfigResult, pt as GenerateAgenticTemplateOptions, q as StylelintToolingConfig, r as DefineVitestConfigOptions, rt as initToolingTargets, s as MonorepoLintStagedConfig, st as getCreateChoices, t as DefineConfigOptions, tt as initTooling, u as MonorepoTsconfig, ut as templateMap, v as createMonorepoLintStagedConfig, vt as loadAgenticTasks, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, yt as CliOpts, z as EslintToolingConfig } from "./index-BTR2XH8f.mjs";
2
2
  import gitUrlParse from "git-url-parse";
3
3
  import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
4
4
  import { execFileSync, spawnSync } from "node:child_process";
@@ -368,6 +368,7 @@ interface ReleaseOptions {
368
368
  branch?: string;
369
369
  spawn?: typeof spawnSync;
370
370
  env?: NodeJS.ProcessEnv;
371
+ config?: ReleaseCommandConfig;
371
372
  }
372
373
  interface ReleaseCiOptions extends ReleaseOptions {
373
374
  mode?: ReleaseMode;
@@ -382,11 +383,11 @@ interface PublishedPackage {
382
383
  //#endregion
383
384
  //#region src/commands/release/ci.d.ts
384
385
  declare function createReleasePullRequest(options: ReleaseCiOptions): Promise<boolean>;
385
- declare function recoverUnpublished(options: ReleaseCiOptions): Promise<void>;
386
- declare function releaseCi(options: ReleaseCiOptions): Promise<void>;
386
+ declare function recoverUnpublished(options: ReleaseCiOptions): Promise<PublishedPackage[]>;
387
+ declare function releaseCi(options: ReleaseCiOptions): Promise<PublishedPackage[] | undefined>;
387
388
  //#endregion
388
389
  //#region src/commands/release/prerelease.d.ts
389
- declare function releasePrerelease(options: ReleaseOptions): Promise<void>;
390
+ declare function releasePrerelease(options: ReleaseOptions): Promise<PublishedPackage[] | undefined>;
390
391
  declare function enterPrerelease(tag: string, options: ReleaseOptions): Promise<void>;
391
392
  declare function exitPrerelease(options: ReleaseOptions): Promise<void>;
392
393
  //#endregion
@@ -407,9 +408,9 @@ declare function parsePublishSummary(content: string): PublishedPackage[];
407
408
  //#endregion
408
409
  //#region src/commands/release/stable.d.ts
409
410
  declare function prepareStable(options: ReleaseOptions): Promise<boolean>;
410
- declare function publishStable(options: ReleaseOptions): Promise<void>;
411
+ declare function publishStable(options: ReleaseOptions): Promise<PublishedPackage[]>;
411
412
  /** Compatibility entry point retained for existing generated repositories. */
412
- declare function releaseStable(options: ReleaseOptions): Promise<void>;
413
+ declare function releaseStable(options: ReleaseOptions): Promise<PublishedPackage[]>;
413
414
  //#endregion
414
415
  //#region src/commands/skills.d.ts
415
416
  /**
@@ -871,4 +872,4 @@ declare function escapeStringRegexp(str: string): string;
871
872
  */
872
873
  declare function isMatch(str: string, arr: RegExp[]): boolean;
873
874
  //#endregion
874
- export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, GetWorkspacePackagesOptions, GitClient, GitHubApiError, GitHubClient, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
875
+ export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, GetWorkspacePackagesOptions, GitClient, GitHubApiError, GitHubClient, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, ReleaseAfterPublishHookConfig, ReleaseCommandConfig, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as verifyPreCommit, A as getCreateChoices, B as isMatch, C as collectEnvInfo, D as runDoctor, E as collectEnvSupportBundle, F as cleanProjects, G as toPublishGitignorePath, H as getFileHash, I as getSkillTargetPaths, J as getKnownRepoCheckCommands, K as toWorkspaceGitignorePath, L as skillTargets, M as resolveCreateNewProjectPlan, N as templateMap, O as createNewProject, P as inspectMonorepoConfig, Q as verifyCommitMsg, R as syncSkills, S as createContext, T as collectEnvSnapshot, U as isFileChanged, V as setByPath, W as isGitignoreFile, X as resolveRecommendedCheckPlan, Y as resolveFullWorkspaceCheckPlan, Z as runRecommendedCheck, _ as setVscodeBinaryMirror, a as createReleasePullRequest, at as generateAgenticTemplates, b as initTooling, c as prepareStable, d as enterPrerelease, et as verifyPrePush, f as exitPrerelease, g as parsePublishSummary, h as GitHubClient, i as repairReleaseNotes, it as generateAgenticTemplate, j as getTemplateMap, l as publishStable, m as GitHubApiError, n as upgradeMonorepo, nt as createTimestampFolderName, o as recoverUnpublished, ot as loadAgenticTasks, p as releasePrerelease, q as updateIssueTemplateConfig, r as checkTemplates, rt as defaultAgenticBaseDir, s as releaseCi, st as GitClient, tt as verifyStagedTypecheck, u as releaseStable, v as init, w as collectEnvPaths, x as normalizeInitToolingTargets, y as initMetadata, z as escapeStringRegexp } from "./commands-BqUFCJA_.mjs";
1
+ import { $ as verifyPreCommit, A as getCreateChoices, B as isMatch, C as collectEnvInfo, D as runDoctor, E as collectEnvSupportBundle, F as cleanProjects, G as toPublishGitignorePath, H as getFileHash, I as getSkillTargetPaths, J as getKnownRepoCheckCommands, K as toWorkspaceGitignorePath, L as skillTargets, M as resolveCreateNewProjectPlan, N as templateMap, O as createNewProject, P as inspectMonorepoConfig, Q as verifyCommitMsg, R as syncSkills, S as createContext, T as collectEnvSnapshot, U as isFileChanged, V as setByPath, W as isGitignoreFile, X as resolveRecommendedCheckPlan, Y as resolveFullWorkspaceCheckPlan, Z as runRecommendedCheck, _ as setVscodeBinaryMirror, a as createReleasePullRequest, at as generateAgenticTemplates, b as initTooling, c as prepareStable, d as enterPrerelease, et as verifyPrePush, f as exitPrerelease, g as parsePublishSummary, h as GitHubClient, i as repairReleaseNotes, it as generateAgenticTemplate, j as getTemplateMap, l as publishStable, m as GitHubApiError, n as upgradeMonorepo, nt as createTimestampFolderName, o as recoverUnpublished, ot as loadAgenticTasks, p as releasePrerelease, q as updateIssueTemplateConfig, r as checkTemplates, rt as defaultAgenticBaseDir, s as releaseCi, st as GitClient, tt as verifyStagedTypecheck, u as releaseStable, v as init, w as collectEnvPaths, x as normalizeInitToolingTargets, y as initMetadata, z as escapeStringRegexp } from "./commands-CezFU4i0.mjs";
2
2
  import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
3
- import { C as outputJson, D as remove, E as readJson, O as writeJSON, S as outputJSON, T as readJSON, _ as ensureFile, a as rootDir, b as isIgnorableFsError, g as ensureDir, h as copy, i as packageDir, k as writeJson, l as name, m as logger, n as assetsDir, o as templatesDir, r as cliName, t as initToolingTargets, u as version, v as exists, w as pathExists, x as outputFile } from "./types-BS9l6MOk.mjs";
3
+ import { A as writeJson, C as outputJSON, D as readJson, E as readJSON, O as remove, S as outputFile, T as pathExists, _ as ensureDir, a as rootDir, g as copy, h as logger, i as packageDir, k as writeJSON, l as name, n as assetsDir, o as templatesDir, r as cliName, t as initToolingTargets, u as version, v as ensureFile, w as outputJson, x as isIgnorableFsError, y as exists } from "./types-DC-VClVk.mjs";
4
4
  import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, r as defineMonorepoConfig, s as resolveCommandConfig, t as configExtensions } from "./config-p842Knhq.mjs";
5
5
  import { a as createMonorepoTsconfig, c as defineCommitlintConfig, d as defineStylelintConfig, f as defineTsconfigConfig, h as loadMonorepoToolingConfig, i as createMonorepoStylelintConfig, l as defineEslintConfig, m as defineVitestProjectConfig, n as createMonorepoEslintConfig, o as createMonorepoVitestConfig, p as defineVitestConfig, r as createMonorepoLintStagedConfig, s as createMonorepoVitestProjectConfig, t as createMonorepoCommitlintConfig, u as defineLintStagedConfig } from "./tooling-CdZRpvYw.mjs";
6
6
  export { GitClient, GitHubApiError, GitHubClient, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
@@ -1,2 +1,2 @@
1
- import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-B0fwhqup.mjs";
1
+ import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-BTR2XH8f.mjs";
2
2
  export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
@@ -343,7 +343,7 @@ function message(key, values = {}) {
343
343
  //#endregion
344
344
  //#region package.json
345
345
  var name = "@icebreakers/monorepo";
346
- var version = "5.2.0";
346
+ var version = "5.4.0";
347
347
  var dependencies = {
348
348
  "@icebreakers/commitlint-config": "^4.0.4",
349
349
  "@icebreakers/eslint-config": "^7.0.4",
@@ -413,4 +413,4 @@ const initToolingTargets = [
413
413
  "vitest"
414
414
  ];
415
415
  //#endregion
416
- export { outputJson as C, remove as D, readJson as E, writeJSON as O, outputJSON as S, readJSON as T, ensureFile as _, rootDir as a, isIgnorableFsError as b, devDependencies as c, localize as d, message as f, ensureDir as g, copy as h, packageDir as i, writeJson as k, name as l, logger as m, assetsDir as n, templatesDir as o, supportedLocales as p, cliName as r, dependencies as s, initToolingTargets as t, version as u, exists as v, pathExists as w, outputFile as x, fs as y };
416
+ export { writeJson as A, outputJSON as C, readJson as D, readJSON as E, remove as O, outputFile as S, pathExists as T, ensureDir as _, rootDir as a, fs as b, devDependencies as c, localize as d, message as f, copy as g, logger as h, packageDir as i, writeJSON as k, name as l, supportedLocales as m, assetsDir as n, templatesDir as o, resolveRepoctlLocale as p, cliName as r, dependencies as s, initToolingTargets as t, version as u, ensureFile as v, outputJson as w, isIgnorableFsError as x, exists as y };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "5.2.0",
4
+ "version": "5.4.0",
5
5
  "description": "Core engine and programmatic APIs for repoctl",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -58,8 +58,7 @@
58
58
  "@commitlint/cli": "^21.2.2",
59
59
  "eslint": "^9.0.0 || ^10.0.0",
60
60
  "stylelint": "^17.14.1",
61
- "typescript": "^5.0.0 || ^6.0.0",
62
- "vitest": "^4.1.10"
61
+ "typescript": "^5.0.0 || ^6.0.0"
63
62
  },
64
63
  "peerDependenciesMeta": {
65
64
  "@commitlint/cli": {
@@ -73,9 +72,6 @@
73
72
  },
74
73
  "typescript": {
75
74
  "optional": true
76
- },
77
- "vitest": {
78
- "optional": true
79
75
  }
80
76
  },
81
77
  "dependencies": {
@@ -102,7 +98,7 @@
102
98
  "simple-git": "^3.36.0",
103
99
  "vitest": "^4.1.10",
104
100
  "yaml": "^2.9.0",
105
- "@icebreakers/monorepo-templates": "1.2.0"
101
+ "@icebreakers/monorepo-templates": "1.2.1"
106
102
  },
107
103
  "devDependencies": {
108
104
  "@types/klaw": "^3.0.7",