@icebreakers/monorepo 5.2.0 → 5.3.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 +55 -38
- package/dist/{commands-BqUFCJA_.mjs → commands-D7bVEzen.mjs} +128 -45
- package/dist/{create-flow-BE4Nd902.mjs → create-flow-DbgrqNec.mjs} +2 -2
- package/dist/{index-B0fwhqup.d.mts → index-G16qsfde.d.mts} +33 -1
- package/dist/index.d.mts +8 -7
- package/dist/index.mjs +2 -2
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/{types-BS9l6MOk.mjs → types-CGwtAKfx.mjs} +2 -2
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { d as localize, f as message,
|
|
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-CGwtAKfx.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-
|
|
13
|
+
import("./commands-D7bVEzen.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-
|
|
128
|
+
const { inspectMonorepoConfig } = await import("./commands-D7bVEzen.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-
|
|
448
|
+
const { collectEnvInfo } = await import("./commands-D7bVEzen.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-
|
|
452
|
+
const { collectEnvSnapshot } = await import("./commands-D7bVEzen.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-
|
|
456
|
+
const { collectEnvPaths } = await import("./commands-D7bVEzen.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-
|
|
460
|
+
const { collectEnvSupportBundle } = await import("./commands-D7bVEzen.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-
|
|
464
|
+
const { setVscodeBinaryMirror } = await import("./commands-D7bVEzen.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-
|
|
473
|
+
const { runCreateFlow } = await import("./create-flow-DbgrqNec.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-
|
|
505
|
+
const { releaseCi } = await import("./commands-D7bVEzen.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-
|
|
517
|
+
const { repairReleaseNotes } = await import("./commands-D7bVEzen.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 {
|
|
522
|
-
await
|
|
529
|
+
const { releaseCi } = await import("./commands-D7bVEzen.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 {
|
|
529
|
-
await
|
|
539
|
+
const { releaseCi } = await import("./commands-D7bVEzen.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 {
|
|
536
|
-
await
|
|
549
|
+
const { releaseCi } = await import("./commands-D7bVEzen.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 {
|
|
544
|
-
await
|
|
560
|
+
const { releaseCi } = await import("./commands-D7bVEzen.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-
|
|
567
|
+
const { enterPrerelease } = await import("./commands-D7bVEzen.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-
|
|
574
|
+
const { exitPrerelease } = await import("./commands-D7bVEzen.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-
|
|
585
|
+
const { syncSkills } = await import("./commands-D7bVEzen.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-
|
|
705
|
+
const { checkTemplates } = await import("./commands-D7bVEzen.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-
|
|
784
|
+
const { initTooling } = await import("./commands-D7bVEzen.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-
|
|
955
|
+
const { init } = await import("./commands-D7bVEzen.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-
|
|
966
|
+
const { runCreateFlow } = await import("./create-flow-DbgrqNec.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-
|
|
984
|
+
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-D7bVEzen.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-
|
|
987
|
+
const { resolveFullWorkspaceCheckPlan } = await import("./commands-D7bVEzen.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-
|
|
998
|
+
const { runDoctor } = await import("./commands-D7bVEzen.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-
|
|
1021
|
+
const { upgradeMonorepo } = await import("./commands-D7bVEzen.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-
|
|
1031
|
+
const { verifyPrePush } = await import("./commands-D7bVEzen.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-
|
|
1035
|
+
const { verifyPreCommit } = await import("./commands-D7bVEzen.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-
|
|
1039
|
+
const { verifyCommitMsg } = await import("./commands-D7bVEzen.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-
|
|
1046
|
+
const { verifyStagedTypecheck } = await import("./commands-D7bVEzen.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-
|
|
1125
|
+
const { upgradeMonorepo } = await import("./commands-D7bVEzen.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-
|
|
1130
|
+
const { initMetadata } = await import("./commands-D7bVEzen.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-
|
|
1143
|
+
const { cleanProjects } = await import("./commands-D7bVEzen.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
|
|
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-CGwtAKfx.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
|
|
1382
|
+
const hasValidFixed = hasValidFixedGroups(workspace.versioning?.fixed);
|
|
1380
1383
|
const hasRepositoryChangelog = workspace.versioning?.changelog?.storage === "repository";
|
|
1381
|
-
checks.push(
|
|
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
|
}
|
|
@@ -2250,6 +2253,15 @@ const categoryTitles = {
|
|
|
2250
2253
|
maintenance: "🧰 Maintenance",
|
|
2251
2254
|
other: "🧩 Other Changes"
|
|
2252
2255
|
};
|
|
2256
|
+
const zhCNCategoryTitles = {
|
|
2257
|
+
breaking: "🚨 破坏性变更",
|
|
2258
|
+
features: "🚀 新功能",
|
|
2259
|
+
fixes: "🐞 问题修复",
|
|
2260
|
+
performance: "🏎 性能优化",
|
|
2261
|
+
docs: "📚 文档",
|
|
2262
|
+
maintenance: "🧰 维护",
|
|
2263
|
+
other: "🧩 其他变更"
|
|
2264
|
+
};
|
|
2253
2265
|
function readVersionSection(changelog, version) {
|
|
2254
2266
|
const versions = [...changelog.matchAll(/^## ([^\n]+)$/gm)];
|
|
2255
2267
|
const index = versions.findIndex((match) => match[1] === version);
|
|
@@ -2483,6 +2495,12 @@ function buildEntries(release, commits) {
|
|
|
2483
2495
|
}
|
|
2484
2496
|
//#endregion
|
|
2485
2497
|
//#region src/commands/release/notes/render.ts
|
|
2498
|
+
function isChinese(metadata) {
|
|
2499
|
+
return (metadata.locale ?? resolveRepoctlLocale()) === "zh-CN";
|
|
2500
|
+
}
|
|
2501
|
+
function localized(metadata, english, simplifiedChinese) {
|
|
2502
|
+
return isChinese(metadata) ? simplifiedChinese : english;
|
|
2503
|
+
}
|
|
2486
2504
|
function formatReferenceLinks(entry, metadata) {
|
|
2487
2505
|
const repository = metadata.repository && /^[^/]+\/[^/]+$/.test(metadata.repository) ? metadata.repository : void 0;
|
|
2488
2506
|
const serverUrl = (metadata.serverUrl || "https://github.com").replace(/\/$/, "");
|
|
@@ -2503,7 +2521,7 @@ function formatCategoryEntries(entries, category, metadata, headingLevel, linkNp
|
|
|
2503
2521
|
const matching = entries.filter((entry) => entry.category === category);
|
|
2504
2522
|
if (!matching.length) return [];
|
|
2505
2523
|
return [
|
|
2506
|
-
`${"#".repeat(headingLevel)} ${categoryTitles[category]}`,
|
|
2524
|
+
`${"#".repeat(headingLevel)} ${isChinese(metadata) ? zhCNCategoryTitles[category] : categoryTitles[category]}`,
|
|
2507
2525
|
"",
|
|
2508
2526
|
...matching.map((entry) => formatEntry(entry, metadata, linkNpmVersion))
|
|
2509
2527
|
];
|
|
@@ -2512,23 +2530,23 @@ function formatContributor(value) {
|
|
|
2512
2530
|
if (value.startsWith("@")) return value;
|
|
2513
2531
|
return /^[\w-]+$/.test(value) ? `@${value}` : value;
|
|
2514
2532
|
}
|
|
2515
|
-
function formatContributors(contributors) {
|
|
2533
|
+
function formatContributors(contributors, metadata) {
|
|
2516
2534
|
const unique = [...new Set(contributors.map((value) => value.trim()).filter((value) => value && !isAutomationContributor(value)))].sort((a, b) => a.localeCompare(b));
|
|
2517
2535
|
return unique.length ? [
|
|
2518
|
-
|
|
2536
|
+
`## ❤️ ${localized(metadata, "Contributors", "贡献者")}`,
|
|
2519
2537
|
"",
|
|
2520
|
-
|
|
2538
|
+
`${localized(metadata, "Thanks to", "感谢")} ${unique.map(formatContributor).join(" · ")}`
|
|
2521
2539
|
] : [];
|
|
2522
2540
|
}
|
|
2523
2541
|
function formatVersion(version, npmUrl) {
|
|
2524
2542
|
return npmUrl ? `[\`${version}\`](${npmUrl})` : `\`${version}\``;
|
|
2525
2543
|
}
|
|
2526
|
-
function formatPackages(packages, linkNpmVersion) {
|
|
2544
|
+
function formatPackages(packages, linkNpmVersion, metadata) {
|
|
2527
2545
|
if (!packages.length) return [];
|
|
2528
2546
|
return [
|
|
2529
|
-
"
|
|
2547
|
+
`## ${localized(metadata, "Packages", "包")}`,
|
|
2530
2548
|
"",
|
|
2531
|
-
"
|
|
2549
|
+
`| ${localized(metadata, "Package", "包")} | ${localized(metadata, "From", "原版本")} | ${localized(metadata, "To", "新版本")} |`,
|
|
2532
2550
|
"| --- | --- | --- |",
|
|
2533
2551
|
...packages.map((pkg) => {
|
|
2534
2552
|
const previous = pkg.previousVersion ? formatVersion(pkg.previousVersion, pkg.previousNpmUrl) : "—";
|
|
@@ -2538,31 +2556,33 @@ function formatPackages(packages, linkNpmVersion) {
|
|
|
2538
2556
|
];
|
|
2539
2557
|
}
|
|
2540
2558
|
function renderReleasePullRequest(document, metadata = {}) {
|
|
2559
|
+
const packageWord = isChinese(metadata) ? `${document.packages.length} 个包更新` : `${document.packages.length} package${document.packages.length === 1 ? "" : "s"} updated`;
|
|
2560
|
+
const changeWord = isChinese(metadata) ? `${document.entries.length} 项变更` : `${document.entries.length} change${document.entries.length === 1 ? "" : "s"}`;
|
|
2541
2561
|
const sections = [
|
|
2542
|
-
"
|
|
2562
|
+
`# ${localized(metadata, "Release Notes", "发布说明")}`,
|
|
2543
2563
|
"",
|
|
2544
|
-
`> ${
|
|
2564
|
+
`> ${packageWord} · ${changeWord}`
|
|
2545
2565
|
];
|
|
2546
2566
|
for (const category of categoryOrder.filter((category) => category !== "maintenance")) {
|
|
2547
2567
|
const section = formatCategoryEntries(document.entries, category, metadata, 2, false);
|
|
2548
2568
|
if (section.length) sections.push("", "", ...section);
|
|
2549
2569
|
}
|
|
2550
2570
|
const maintenance = formatCategoryEntries(document.entries, "maintenance", metadata, 2, false);
|
|
2551
|
-
if (maintenance.length) sections.push("", "", "<details>",
|
|
2552
|
-
sections.push("", "", ...formatPackages(document.packages, false));
|
|
2553
|
-
sections.push("", "", ...formatContributors(document.contributors));
|
|
2571
|
+
if (maintenance.length) sections.push("", "", "<details>", `<summary>${localized(metadata, "🧰 Maintenance", "🧰 维护")}</summary>`, "", ...maintenance.slice(2), "", "</details>");
|
|
2572
|
+
sections.push("", "", ...formatPackages(document.packages, false, metadata));
|
|
2573
|
+
sections.push("", "", ...formatContributors(document.contributors, metadata));
|
|
2554
2574
|
return sections.join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
2555
2575
|
}
|
|
2556
2576
|
function renderGitHubRelease(document, metadata = {}) {
|
|
2557
|
-
if (!document.entries.length) return "No significant changes.";
|
|
2577
|
+
if (!document.entries.length) return localized(metadata, "No significant changes.", "没有显著变更。");
|
|
2558
2578
|
const sections = [];
|
|
2559
2579
|
for (const category of categoryOrder) {
|
|
2560
2580
|
const section = formatCategoryEntries(document.entries, category, metadata, 3, true);
|
|
2561
2581
|
if (section.length) sections.push(...sections.length ? ["", ...section] : section);
|
|
2562
2582
|
}
|
|
2563
2583
|
const contributors = [...new Set(document.contributors)].filter((value) => !isAutomationContributor(value)).sort((a, b) => a.localeCompare(b));
|
|
2564
|
-
if (contributors.length) sections.push("",
|
|
2565
|
-
if (document.compareUrls.length) sections.push("", `##### [View changes on GitHub](${document.compareUrls[0]})`);
|
|
2584
|
+
if (contributors.length) sections.push("", `### ❤️ ${localized(metadata, "Contributors", "贡献者")}`, "", `${localized(metadata, "Thanks to", "感谢")} ${contributors.map(formatContributor).join(" · ")}`);
|
|
2585
|
+
if (document.compareUrls.length) sections.push("", `##### [${localized(metadata, "View changes on GitHub", "在 GitHub 查看变更")}](${document.compareUrls[0]})`);
|
|
2566
2586
|
return sections.join("\n");
|
|
2567
2587
|
}
|
|
2568
2588
|
//#endregion
|
|
@@ -2577,10 +2597,14 @@ var ReleaseCommandError = class extends Error {
|
|
|
2577
2597
|
};
|
|
2578
2598
|
//#endregion
|
|
2579
2599
|
//#region src/commands/release/shared.ts
|
|
2600
|
+
function getReleaseEnv(options) {
|
|
2601
|
+
return options.env ?? process.env;
|
|
2602
|
+
}
|
|
2580
2603
|
function run(command, args, options) {
|
|
2581
2604
|
const result = (options.spawn ?? spawnSync)(command, args, {
|
|
2582
2605
|
cwd: options.cwd,
|
|
2583
2606
|
encoding: "utf8",
|
|
2607
|
+
env: getReleaseEnv(options),
|
|
2584
2608
|
shell: false,
|
|
2585
2609
|
stdio: "inherit"
|
|
2586
2610
|
});
|
|
@@ -2590,6 +2614,7 @@ function capture(command, args, options) {
|
|
|
2590
2614
|
const result = (options.spawn ?? spawnSync)(command, args, {
|
|
2591
2615
|
cwd: options.cwd,
|
|
2592
2616
|
encoding: "utf8",
|
|
2617
|
+
env: getReleaseEnv(options),
|
|
2593
2618
|
shell: false,
|
|
2594
2619
|
stdio: [
|
|
2595
2620
|
"ignore",
|
|
@@ -2600,9 +2625,6 @@ function capture(command, args, options) {
|
|
|
2600
2625
|
if (result.status !== 0) throw new ReleaseCommandError(`command failed: ${command} ${args.join(" ")}`, result.status ?? 1);
|
|
2601
2626
|
return result.stdout?.toString().trim() ?? "";
|
|
2602
2627
|
}
|
|
2603
|
-
function getReleaseEnv(options) {
|
|
2604
|
-
return options.env ?? process.env;
|
|
2605
|
-
}
|
|
2606
2628
|
function hasGitChanges(options) {
|
|
2607
2629
|
return (options.spawn ?? spawnSync)("git", [
|
|
2608
2630
|
"diff",
|
|
@@ -2668,10 +2690,8 @@ async function assertStableLaneAssignments(options) {
|
|
|
2668
2690
|
const active = Object.entries(assignments).filter(([, lane]) => lane !== "main");
|
|
2669
2691
|
if (active.length) throw new ReleaseCommandError(`stable releases require all packages on the main lane, found ${active.map(([name, lane]) => `${name}:${lane}`).join(", ")}`);
|
|
2670
2692
|
}
|
|
2671
|
-
function
|
|
2672
|
-
|
|
2673
|
-
run("pnpm", ["run", "lint"], options);
|
|
2674
|
-
run("pnpm", ["run", "test"], options);
|
|
2693
|
+
async function clearPublishSummary(cwd) {
|
|
2694
|
+
await rm(path.join(cwd, "pnpm-publish-summary.json"), { force: true });
|
|
2675
2695
|
}
|
|
2676
2696
|
function parsePublishSummary(content) {
|
|
2677
2697
|
let parsed;
|
|
@@ -2818,7 +2838,12 @@ async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
|
|
|
2818
2838
|
}
|
|
2819
2839
|
function buildGitHubReleaseBodyFromChangelog(packageName, packageVersion, changelog, metadata = {}) {
|
|
2820
2840
|
const section = readVersionSection(changelog, packageVersion);
|
|
2821
|
-
if (!section?.content) return
|
|
2841
|
+
if (!section?.content) return renderGitHubRelease({
|
|
2842
|
+
packages: [],
|
|
2843
|
+
entries: [],
|
|
2844
|
+
contributors: [],
|
|
2845
|
+
compareUrls: []
|
|
2846
|
+
}, metadata);
|
|
2822
2847
|
return renderGitHubRelease(buildReleaseNoteDocumentFromReleases([{
|
|
2823
2848
|
name: packageName,
|
|
2824
2849
|
version: packageVersion,
|
|
@@ -3040,6 +3065,39 @@ var GitHubClient = class {
|
|
|
3040
3065
|
}
|
|
3041
3066
|
};
|
|
3042
3067
|
//#endregion
|
|
3068
|
+
//#region src/commands/release/hooks.ts
|
|
3069
|
+
const defaultQualityScripts = [
|
|
3070
|
+
"build",
|
|
3071
|
+
"lint",
|
|
3072
|
+
"test"
|
|
3073
|
+
];
|
|
3074
|
+
function validateScriptName(script) {
|
|
3075
|
+
const normalizedScript = script.trim();
|
|
3076
|
+
if (!normalizedScript) throw new ReleaseCommandError("release script name must not be empty");
|
|
3077
|
+
return normalizedScript;
|
|
3078
|
+
}
|
|
3079
|
+
function runScripts(scripts, options, extraEnv) {
|
|
3080
|
+
for (const script of scripts) run("pnpm", ["run", validateScriptName(script)], {
|
|
3081
|
+
...options,
|
|
3082
|
+
...extraEnv ? { env: {
|
|
3083
|
+
...options.env ?? process.env,
|
|
3084
|
+
...extraEnv
|
|
3085
|
+
} } : {}
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
function runQualityScripts(options) {
|
|
3089
|
+
runScripts(options.config?.qualityScripts ?? defaultQualityScripts, options);
|
|
3090
|
+
}
|
|
3091
|
+
function runReleaseHooks(phase, options) {
|
|
3092
|
+
runScripts(options.config?.hooks?.[phase] ?? [], options);
|
|
3093
|
+
}
|
|
3094
|
+
function runAfterPublishHooks(packages, options) {
|
|
3095
|
+
runScripts(options.config?.hooks?.afterPublish ?? [], options, {
|
|
3096
|
+
REPO_RELEASE_PUBLISHED_PACKAGES: JSON.stringify(packages),
|
|
3097
|
+
REPO_RELEASE_PUBLISH_SUMMARY: path.resolve(options.cwd, "pnpm-publish-summary.json")
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
3100
|
+
//#endregion
|
|
3043
3101
|
//#region src/commands/release/types.ts
|
|
3044
3102
|
const prereleaseBranches = /* @__PURE__ */ new Set([
|
|
3045
3103
|
"alpha",
|
|
@@ -3053,13 +3111,15 @@ async function releasePrerelease(options) {
|
|
|
3053
3111
|
const branch = resolveBranch(options);
|
|
3054
3112
|
if (!prereleaseBranches.has(branch)) throw new ReleaseCommandError(`repo release pre is only allowed on alpha, beta, rc, or next branches, got ${branch}`);
|
|
3055
3113
|
await assertLaneAssignments(branch, options);
|
|
3056
|
-
runQualityChecks(options);
|
|
3057
3114
|
if (!await hasPendingIntents(options.cwd)) return;
|
|
3115
|
+
runReleaseHooks("beforeVersion", options);
|
|
3116
|
+
runQualityScripts(options);
|
|
3058
3117
|
run("pnpm", [
|
|
3059
3118
|
"version",
|
|
3060
3119
|
"-r",
|
|
3061
3120
|
"--no-git-checks"
|
|
3062
3121
|
], options);
|
|
3122
|
+
runReleaseHooks("afterVersion", options);
|
|
3063
3123
|
if (!hasGitChanges(options)) return;
|
|
3064
3124
|
run("git", ["add", "-A"], options);
|
|
3065
3125
|
run("git", [
|
|
@@ -3067,6 +3127,8 @@ async function releasePrerelease(options) {
|
|
|
3067
3127
|
"-m",
|
|
3068
3128
|
`chore(release): ${branch} [skip ci]`
|
|
3069
3129
|
], options);
|
|
3130
|
+
runReleaseHooks("beforePublish", options);
|
|
3131
|
+
await clearPublishSummary(options.cwd);
|
|
3070
3132
|
run("pnpm", [
|
|
3071
3133
|
"publish",
|
|
3072
3134
|
"-r",
|
|
@@ -3082,6 +3144,7 @@ async function releasePrerelease(options) {
|
|
|
3082
3144
|
"origin",
|
|
3083
3145
|
`HEAD:${branch}`
|
|
3084
3146
|
], options);
|
|
3147
|
+
return readPublishSummary(options.cwd);
|
|
3085
3148
|
}
|
|
3086
3149
|
async function enterPrerelease(tag, options) {
|
|
3087
3150
|
if (!prereleaseBranches.has(tag)) throw new ReleaseCommandError(`unknown prerelease lane ${tag}; expected alpha, beta, rc, or next`);
|
|
@@ -3096,20 +3159,25 @@ async function prepareStable(options) {
|
|
|
3096
3159
|
const branch = resolveBranch(options);
|
|
3097
3160
|
if (branch !== "main") throw new ReleaseCommandError(`repo release stable prepare is only allowed on main, got ${branch}`);
|
|
3098
3161
|
await assertStableLaneAssignments(options);
|
|
3099
|
-
runQualityChecks(options);
|
|
3100
3162
|
if (!await hasPendingIntents(options.cwd)) return false;
|
|
3163
|
+
runReleaseHooks("beforeVersion", options);
|
|
3164
|
+
runQualityScripts(options);
|
|
3101
3165
|
run("pnpm", [
|
|
3102
3166
|
"version",
|
|
3103
3167
|
"-r",
|
|
3104
3168
|
"--no-git-checks"
|
|
3105
3169
|
], options);
|
|
3170
|
+
runReleaseHooks("afterVersion", options);
|
|
3106
3171
|
return hasGitChanges(options);
|
|
3107
3172
|
}
|
|
3108
3173
|
async function publishStable(options) {
|
|
3109
3174
|
const branch = resolveBranch(options);
|
|
3110
3175
|
if (branch !== "main") throw new ReleaseCommandError(`repo release stable publish is only allowed on main, got ${branch}`);
|
|
3111
3176
|
await assertStableLaneAssignments(options);
|
|
3112
|
-
|
|
3177
|
+
if (await hasPendingIntents(options.cwd)) throw new ReleaseCommandError("stable publish found unconsumed change intents; prepare and merge the Release PR before publishing");
|
|
3178
|
+
runQualityScripts(options);
|
|
3179
|
+
runReleaseHooks("beforePublish", options);
|
|
3180
|
+
await clearPublishSummary(options.cwd);
|
|
3113
3181
|
run("pnpm", [
|
|
3114
3182
|
"publish",
|
|
3115
3183
|
"-r",
|
|
@@ -3117,10 +3185,11 @@ async function publishStable(options) {
|
|
|
3117
3185
|
"--provenance",
|
|
3118
3186
|
"--no-git-checks"
|
|
3119
3187
|
], options);
|
|
3188
|
+
return readPublishSummary(options.cwd);
|
|
3120
3189
|
}
|
|
3121
3190
|
/** Compatibility entry point retained for existing generated repositories. */
|
|
3122
3191
|
async function releaseStable(options) {
|
|
3123
|
-
|
|
3192
|
+
return publishStable(options);
|
|
3124
3193
|
}
|
|
3125
3194
|
//#endregion
|
|
3126
3195
|
//#region src/commands/release/ci.ts
|
|
@@ -3158,6 +3227,9 @@ function resolveGitHub(options) {
|
|
|
3158
3227
|
function resolveTarget(options) {
|
|
3159
3228
|
return getReleaseEnv(options)["GITHUB_SHA"]?.trim() || capture("git", ["rev-parse", "HEAD"], options);
|
|
3160
3229
|
}
|
|
3230
|
+
function resolveReleaseLocale(options) {
|
|
3231
|
+
return resolveRepoctlLocale({ env: getReleaseEnv(options) });
|
|
3232
|
+
}
|
|
3161
3233
|
function formatPublishedPackageSummary(packages) {
|
|
3162
3234
|
return ["Published packages:", ...packages.length ? packages.map((pkg) => ` - ${pkg.name}@${pkg.version}`) : [" (none)"]].join("\n");
|
|
3163
3235
|
}
|
|
@@ -3170,6 +3242,7 @@ async function publishMetadata(packages, options, prerelease = false) {
|
|
|
3170
3242
|
const target = resolveTarget(options);
|
|
3171
3243
|
const releaseEnv = getReleaseEnv(options);
|
|
3172
3244
|
const metadata = {
|
|
3245
|
+
locale: resolveReleaseLocale(options),
|
|
3173
3246
|
...releaseEnv["GITHUB_REPOSITORY"] ? { repository: releaseEnv["GITHUB_REPOSITORY"] } : {},
|
|
3174
3247
|
...releaseEnv["GITHUB_SERVER_URL"] ? { serverUrl: releaseEnv["GITHUB_SERVER_URL"] } : {}
|
|
3175
3248
|
};
|
|
@@ -3265,6 +3338,7 @@ async function createReleasePullRequest(options) {
|
|
|
3265
3338
|
const github = resolveGitHub(options);
|
|
3266
3339
|
const releaseEnv = getReleaseEnv(options);
|
|
3267
3340
|
const metadata = {
|
|
3341
|
+
locale: resolveReleaseLocale(options),
|
|
3268
3342
|
commits: sourceCommits,
|
|
3269
3343
|
...releaseEnv["GITHUB_REPOSITORY"] ? { repository: releaseEnv["GITHUB_REPOSITORY"] } : {},
|
|
3270
3344
|
...releaseEnv["GITHUB_SERVER_URL"] ? { serverUrl: releaseEnv["GITHUB_SERVER_URL"] } : {}
|
|
@@ -3274,7 +3348,7 @@ async function createReleasePullRequest(options) {
|
|
|
3274
3348
|
await github.ensurePullRequest({
|
|
3275
3349
|
head: releaseBranch,
|
|
3276
3350
|
base: "main",
|
|
3277
|
-
title: "chore(release): version packages",
|
|
3351
|
+
title: resolveReleaseLocale(options) === "zh-CN" ? "chore(release): 更新包版本" : "chore(release): version packages",
|
|
3278
3352
|
body: renderReleasePullRequest(noteDocument, metadata)
|
|
3279
3353
|
});
|
|
3280
3354
|
await github.closeLegacyReleasePullRequests?.({
|
|
@@ -3287,6 +3361,7 @@ async function recoverUnpublished(options) {
|
|
|
3287
3361
|
const packageName = options.packageName || getReleaseEnv(options)["REPO_RELEASE_PACKAGE"]?.trim();
|
|
3288
3362
|
const packageVersion = options.packageVersion || getReleaseEnv(options)["REPO_RELEASE_VERSION"]?.trim();
|
|
3289
3363
|
if (!packageName || !packageVersion) throw new ReleaseCommandError("publish-unpublished requires REPO_RELEASE_PACKAGE and REPO_RELEASE_VERSION");
|
|
3364
|
+
if (await hasPendingIntents(options.cwd)) throw new ReleaseCommandError("publish-unpublished found unconsumed change intents; prepare and merge the Release PR before publishing");
|
|
3290
3365
|
const actualVersion = capture("pnpm", [
|
|
3291
3366
|
"--filter",
|
|
3292
3367
|
packageName,
|
|
@@ -3296,6 +3371,9 @@ async function recoverUnpublished(options) {
|
|
|
3296
3371
|
"require('./package.json').version"
|
|
3297
3372
|
], options);
|
|
3298
3373
|
if (actualVersion !== packageVersion) throw new ReleaseCommandError(`expected ${packageName}@${packageVersion} in the workspace, found ${actualVersion}`);
|
|
3374
|
+
runQualityScripts(options);
|
|
3375
|
+
runReleaseHooks("beforePublish", options);
|
|
3376
|
+
await clearPublishSummary(options.cwd);
|
|
3299
3377
|
run("pnpm", [
|
|
3300
3378
|
"publish",
|
|
3301
3379
|
"-r",
|
|
@@ -3310,7 +3388,10 @@ async function recoverUnpublished(options) {
|
|
|
3310
3388
|
`${packageName}@${packageVersion}`,
|
|
3311
3389
|
"version"
|
|
3312
3390
|
], options) !== packageVersion) throw new ReleaseCommandError(`npm did not report ${packageName}@${packageVersion} after recovery`);
|
|
3313
|
-
|
|
3391
|
+
const packages = await readPublishSummary(options.cwd);
|
|
3392
|
+
await publishMetadata(packages, options);
|
|
3393
|
+
runAfterPublishHooks(packages, options);
|
|
3394
|
+
return packages;
|
|
3314
3395
|
}
|
|
3315
3396
|
function resolveMode(options) {
|
|
3316
3397
|
const requested = options.mode || getReleaseEnv(options)["REPO_RELEASE_MODE"]?.trim();
|
|
@@ -3324,28 +3405,30 @@ async function releaseCi(options) {
|
|
|
3324
3405
|
return;
|
|
3325
3406
|
}
|
|
3326
3407
|
if (mode === "publish") {
|
|
3327
|
-
await publishStable(options);
|
|
3328
|
-
await publishMetadata(
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
if (mode === "publish-unpublished") {
|
|
3332
|
-
await recoverUnpublished(options);
|
|
3333
|
-
return;
|
|
3408
|
+
const packages = await publishStable(options);
|
|
3409
|
+
await publishMetadata(packages, options);
|
|
3410
|
+
runAfterPublishHooks(packages, options);
|
|
3411
|
+
return packages;
|
|
3334
3412
|
}
|
|
3413
|
+
if (mode === "publish-unpublished") return recoverUnpublished(options);
|
|
3335
3414
|
if (mode !== "auto") throw new ReleaseCommandError(`unknown release CI mode ${mode}; expected auto, prepare, publish, or publish-unpublished`);
|
|
3336
3415
|
const branch = resolveBranch(options);
|
|
3337
3416
|
if (prereleaseBranches.has(branch)) {
|
|
3338
|
-
await releasePrerelease(options);
|
|
3339
|
-
|
|
3340
|
-
|
|
3417
|
+
const packages = await releasePrerelease(options);
|
|
3418
|
+
if (!packages) return;
|
|
3419
|
+
await publishMetadata(packages, options, true);
|
|
3420
|
+
runAfterPublishHooks(packages, options);
|
|
3421
|
+
return packages;
|
|
3341
3422
|
}
|
|
3342
3423
|
if (branch !== "main") throw new ReleaseCommandError(`repo release ci only supports main, alpha, beta, rc, or next branches, got ${branch}`);
|
|
3343
3424
|
if (await hasPendingIntents(options.cwd)) {
|
|
3344
3425
|
await createReleasePullRequest(options);
|
|
3345
3426
|
return;
|
|
3346
3427
|
}
|
|
3347
|
-
await publishStable(options);
|
|
3348
|
-
await publishMetadata(
|
|
3428
|
+
const packages = await publishStable(options);
|
|
3429
|
+
await publishMetadata(packages, options);
|
|
3430
|
+
runAfterPublishHooks(packages, options);
|
|
3431
|
+
return packages;
|
|
3349
3432
|
}
|
|
3350
3433
|
//#endregion
|
|
3351
3434
|
//#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-
|
|
2
|
-
import {
|
|
1
|
+
import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-D7bVEzen.mjs";
|
|
2
|
+
import { b as fs, d as localize, h as logger } from "./types-CGwtAKfx.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,37 @@ interface HuskyToolingConfig {
|
|
|
591
591
|
*/
|
|
592
592
|
commitMsgCommand?: string;
|
|
593
593
|
}
|
|
594
|
+
interface ReleaseCommandConfig {
|
|
595
|
+
/**
|
|
596
|
+
* version 与 publish 阶段执行的根 package.json 校验脚本。
|
|
597
|
+
* 配置后完整替换内置的 build、lint、test。
|
|
598
|
+
* @default ['build', 'lint', 'test']
|
|
599
|
+
*/
|
|
600
|
+
qualityScripts?: string[];
|
|
601
|
+
hooks?: {
|
|
602
|
+
/**
|
|
603
|
+
* pnpm version 前执行的根 package.json 脚本。
|
|
604
|
+
* @default []
|
|
605
|
+
*/
|
|
606
|
+
beforeVersion?: string[];
|
|
607
|
+
/**
|
|
608
|
+
* pnpm version 后执行的根 package.json 脚本。
|
|
609
|
+
* @default []
|
|
610
|
+
*/
|
|
611
|
+
afterVersion?: string[];
|
|
612
|
+
/**
|
|
613
|
+
* pnpm publish 前执行的根 package.json 脚本。
|
|
614
|
+
* @default []
|
|
615
|
+
*/
|
|
616
|
+
beforePublish?: string[];
|
|
617
|
+
/**
|
|
618
|
+
* npm metadata 与 GitHub Release 处理完成后执行的根 package.json 脚本。
|
|
619
|
+
* 即使没有 npm 包发布也会执行。
|
|
620
|
+
* @default []
|
|
621
|
+
*/
|
|
622
|
+
afterPublish?: string[];
|
|
623
|
+
};
|
|
624
|
+
}
|
|
594
625
|
/**
|
|
595
626
|
* `repoctl.config.ts` 中 `tooling` 总配置。
|
|
596
627
|
*
|
|
@@ -622,6 +653,7 @@ interface MonorepoConfig {
|
|
|
622
653
|
upgrade?: UpgradeCommandConfig;
|
|
623
654
|
init?: InitCommandConfig;
|
|
624
655
|
mirror?: MirrorCommandConfig;
|
|
656
|
+
release?: ReleaseCommandConfig;
|
|
625
657
|
};
|
|
626
658
|
/**
|
|
627
659
|
* 按工程化能力分类的可选配置。
|
|
@@ -971,4 +1003,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
|
|
|
971
1003
|
*/
|
|
972
1004
|
declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
|
|
973
1005
|
//#endregion
|
|
974
|
-
export {
|
|
1006
|
+
export { initMetadata as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, ReleaseCommandConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, TsconfigToolingConfig as J, StylelintToolingConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, init as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, VitestProjectToolingConfig as X, UpgradeCommandConfig as Y, VitestToolingConfig as Z, createMonorepoEslintConfig as _, loadAgenticTasks as _t, MonorepoCommitlintConfig as a, CreateNewProjectPlan as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, resolveCreateNewProjectPlan as ct, MonorepoVitestConfigOptions as d, AgenticTemplateTask as dt, initTooling as et, MonorepoVitestConfigOverrides as f, GenerateAgenticTemplateOptions as ft, createMonorepoCommitlintConfig as g, generateAgenticTemplates as gt, MonorepoVitestProjectConfigResult as h, generateAgenticTemplate as ht, DefineVitestProjectConfigOptions as i, CreateNewProjectOptions as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, templateMap as lt, MonorepoVitestProjectConfigOptions as m, defaultAgenticBaseDir as mt, DefineEslintConfigOptions as n, initToolingTargets as nt, MonorepoEslintConfig as o, getCreateChoices as ot, MonorepoVitestConfigResult as p, createTimestampFolderName as pt, ToolingConfig as q, DefineVitestConfigOptions as r, createNewProject as rt, MonorepoLintStagedConfig as s, getTemplateMap as st, DefineConfigOptions as t, normalizeInitToolingTargets as tt, MonorepoTsconfig as u, AgenticTemplateFormat as ut, createMonorepoLintStagedConfig as v, CliOpts as vt, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, EslintToolingConfig as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as initMetadata, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as ReleaseCommandConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as TsconfigToolingConfig, K as StylelintToolingConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as init, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as VitestProjectToolingConfig, Y as UpgradeCommandConfig, Z as VitestToolingConfig, _ as createMonorepoEslintConfig, _t as loadAgenticTasks, a as MonorepoCommitlintConfig, at as CreateNewProjectPlan, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as resolveCreateNewProjectPlan, d as MonorepoVitestConfigOptions, dt as AgenticTemplateTask, et as initTooling, f as MonorepoVitestConfigOverrides, ft as GenerateAgenticTemplateOptions, g as createMonorepoCommitlintConfig, gt as generateAgenticTemplates, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplate, i as DefineVitestProjectConfigOptions, it as CreateNewProjectOptions, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as templateMap, m as MonorepoVitestProjectConfigOptions, mt as defaultAgenticBaseDir, n as DefineEslintConfigOptions, nt as initToolingTargets, o as MonorepoEslintConfig, ot as getCreateChoices, p as MonorepoVitestConfigResult, pt as createTimestampFolderName, q as ToolingConfig, r as DefineVitestConfigOptions, rt as createNewProject, s as MonorepoLintStagedConfig, st as getTemplateMap, t as DefineConfigOptions, tt as normalizeInitToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateFormat, v as createMonorepoLintStagedConfig, vt as CliOpts, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-G16qsfde.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<
|
|
386
|
-
declare function releaseCi(options: ReleaseCiOptions): Promise<
|
|
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<
|
|
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<
|
|
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<
|
|
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, 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-
|
|
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-D7bVEzen.mjs";
|
|
2
2
|
import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
|
|
3
|
-
import { C as
|
|
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-CGwtAKfx.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 };
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -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-
|
|
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-G16qsfde.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.
|
|
346
|
+
var version = "5.3.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 {
|
|
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.
|
|
4
|
+
"version": "5.3.0",
|
|
5
5
|
"description": "Core engine and programmatic APIs for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"simple-git": "^3.36.0",
|
|
103
103
|
"vitest": "^4.1.10",
|
|
104
104
|
"yaml": "^2.9.0",
|
|
105
|
-
"@icebreakers/monorepo-templates": "1.2.
|
|
105
|
+
"@icebreakers/monorepo-templates": "1.2.1"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@types/klaw": "^3.0.7",
|