@icebreakers/monorepo 5.1.0 → 5.1.1
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 +44 -33
- package/dist/{commands-BD9u8I6D.mjs → commands-DwvtvWjz.mjs} +197 -23
- package/dist/{create-flow-D_SecUxo.mjs → create-flow-D-_VjRtz.mjs} +2 -2
- package/dist/index.d.mts +26 -1
- package/dist/index.mjs +3 -3
- package/dist/{types-S6igCe0w.mjs → types-CLzhRYdV.mjs} +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as logger, g as fs, r as cliName, t as initToolingTargets, u as version } from "./types-
|
|
1
|
+
import { d as logger, g as fs, r as cliName, t as initToolingTargets, u as version } from "./types-CLzhRYdV.mjs";
|
|
2
2
|
import path from "pathe";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import os from "node:os";
|
|
@@ -8,7 +8,7 @@ import { Command } from "commander";
|
|
|
8
8
|
async function handleAiPromptCreate(cwd, opts) {
|
|
9
9
|
const [{ input }, { createTimestampFolderName, defaultAgenticBaseDir, generateAgenticTemplate, generateAgenticTemplates, loadAgenticTasks }, { resolveCommandConfig }] = await Promise.all([
|
|
10
10
|
import("@icebreakers/monorepo-templates"),
|
|
11
|
-
import("./commands-
|
|
11
|
+
import("./commands-DwvtvWjz.mjs").then((n) => n.t),
|
|
12
12
|
import("./config-p842Knhq.mjs").then((n) => n.n)
|
|
13
13
|
]);
|
|
14
14
|
const aiConfig = await resolveCommandConfig("ai", cwd);
|
|
@@ -123,7 +123,7 @@ async function emitConfigInspection(inspection, opts, cwd) {
|
|
|
123
123
|
}
|
|
124
124
|
function registerConfigCommands(program, cwd) {
|
|
125
125
|
program.command("config").alias("cfg").description("配置命令").command("inspect").description("输出当前 repoctl 配置文件和已解析配置").alias("i").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便粘贴到 issue 或 PR").option("--out <file>", "把当前输出写入文件").option("--redact", "脱敏 cwd/configDir/home 绝对路径后再输出").action(async (opts) => {
|
|
126
|
-
const { inspectMonorepoConfig } = await import("./commands-
|
|
126
|
+
const { inspectMonorepoConfig } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
127
127
|
await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -443,23 +443,23 @@ async function emitEnvSupportBundle(bundle, opts, cwd) {
|
|
|
443
443
|
function registerEnvCommands(program, cwd) {
|
|
444
444
|
const envCommand = program.command("env").alias("e").description("环境命令");
|
|
445
445
|
envCommand.command("info").description("输出当前仓库环境信息").alias("i").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便粘贴到 issue 或 PR").option("--out <file>", "把当前输出写入文件").option("--redact", "脱敏 workspace/cwd/home 绝对路径后再输出").action(async (opts) => {
|
|
446
|
-
const { collectEnvInfo } = await import("./commands-
|
|
446
|
+
const { collectEnvInfo } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
447
447
|
await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
|
|
448
448
|
});
|
|
449
449
|
envCommand.command("snapshot").description("输出排障快照,包含环境、doctor 和 check 计划").alias("s").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便粘贴到 issue 或 PR").option("--out <file>", "把当前输出写入文件").option("--redact", "脱敏 workspace/cwd/home 绝对路径后再输出").option("--strict", "输出快照后,如果 doctor 有 fail 或 warn 则返回失败码").action(async (opts) => {
|
|
450
|
-
const { collectEnvSnapshot } = await import("./commands-
|
|
450
|
+
const { collectEnvSnapshot } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
451
451
|
await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
|
|
452
452
|
});
|
|
453
453
|
envCommand.command("paths").description("输出当前仓库关键路径和报告建议位置").alias("p").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便粘贴到 issue 或 PR").option("--out <file>", "把当前输出写入文件").option("--redact", "脱敏 workspace/cwd/home 绝对路径后再输出").action(async (opts) => {
|
|
454
|
-
const { collectEnvPaths } = await import("./commands-
|
|
454
|
+
const { collectEnvPaths } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
455
455
|
await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
|
|
456
456
|
});
|
|
457
457
|
envCommand.command("support").description("输出完整排障包,包含环境、路径、配置、doctor 和 check 计划").alias("b").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便粘贴到 issue 或 PR").option("--out <file>", "把当前输出写入文件").option("--redact", "脱敏 workspace/cwd/home 绝对路径后再输出").option("--strict", "输出排障包后,如果 doctor 有 fail 或 warn 则返回失败码").action(async (opts) => {
|
|
458
|
-
const { collectEnvSupportBundle } = await import("./commands-
|
|
458
|
+
const { collectEnvSupportBundle } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
459
459
|
await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
|
|
460
460
|
});
|
|
461
461
|
envCommand.command("mirror").description("设置 VS Code binary mirror").alias("m").action(async () => {
|
|
462
|
-
const { setVscodeBinaryMirror } = await import("./commands-
|
|
462
|
+
const { setVscodeBinaryMirror } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
463
463
|
await setVscodeBinaryMirror(cwd);
|
|
464
464
|
logger.success("env mirror finished!");
|
|
465
465
|
});
|
|
@@ -468,7 +468,7 @@ function registerEnvCommands(program, cwd) {
|
|
|
468
468
|
//#region src/cli/commands/package.ts
|
|
469
469
|
function registerPackageCommands(program, cwd) {
|
|
470
470
|
program.command("package").alias("pkg").description("子包命令").command("create").description("创建一个新的子包").alias("new").argument("[name]").option("-t, --template <template>", "直接使用指定模板,跳过模板选择").option("--dry-run", "预览将要创建的目录与 package 信息,不写入文件").option("--json", "以 JSON 输出创建预览,隐含 --dry-run").option("--out <file>", "把创建预览写入文件,隐含 --dry-run").action(async (inputName, opts) => {
|
|
471
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
471
|
+
const { runCreateFlow } = await import("./create-flow-D-_VjRtz.mjs");
|
|
472
472
|
const result = await runCreateFlow(cwd, inputName, {
|
|
473
473
|
...opts.template !== void 0 ? { template: opts.template } : {},
|
|
474
474
|
...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
|
|
@@ -493,33 +493,44 @@ function registerReleaseCommands(program, cwd) {
|
|
|
493
493
|
const releaseCommand = program.command("release").description("发布与 pnpm versioning 工具集");
|
|
494
494
|
releaseCommand.command("ci").description("在 CI 中自动准备、发布和恢复版本").option("--mode <mode>", "auto / prepare / publish / publish-unpublished", "auto").option("--package <name>", "publish-unpublished 使用的 package").option("--version <version>", "publish-unpublished 使用的版本").action(async (opts) => {
|
|
495
495
|
await runReleaseAction(async () => {
|
|
496
|
-
const { releaseCi } = await import("./commands-
|
|
496
|
+
const { releaseCi } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
497
497
|
await releaseCi({
|
|
498
498
|
cwd,
|
|
499
499
|
...opts.mode ? { mode: opts.mode } : {},
|
|
500
500
|
...opts.package ? { packageName: opts.package } : {},
|
|
501
501
|
...opts.version ? { packageVersion: opts.version } : {}
|
|
502
502
|
});
|
|
503
|
-
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
releaseCommand.command("notes").description("维护 GitHub Release 正文").command("repair").description("按每个发布 tag 对应的 changelog 重建 GitHub Release 正文").option("--all", "修复所有可识别的 GitHub Release").option("--tag <package@version>", "只修复指定 package@version").option("--dry-run", "只生成并统计,不更新 GitHub Release").action(async (opts) => {
|
|
506
|
+
await runReleaseAction(async () => {
|
|
507
|
+
const { repairReleaseNotes } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
508
|
+
const result = await repairReleaseNotes({
|
|
509
|
+
cwd,
|
|
510
|
+
...opts.all ? { all: true } : {},
|
|
511
|
+
...opts.tag ? { tag: opts.tag } : {},
|
|
512
|
+
...opts.dryRun ? { dryRun: true } : {}
|
|
513
|
+
});
|
|
514
|
+
logger.success(`release notes repaired: ${result.repaired.length}; skipped: ${result.skipped.length}`);
|
|
504
515
|
});
|
|
505
516
|
});
|
|
506
517
|
const stableCommand = releaseCommand.command("stable").description("在 main 分支执行正式发布").action(async () => {
|
|
507
518
|
await runReleaseAction(async () => {
|
|
508
|
-
const { releaseStable } = await import("./commands-
|
|
519
|
+
const { releaseStable } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
509
520
|
await releaseStable({ cwd });
|
|
510
521
|
logger.success("stable release finished!");
|
|
511
522
|
});
|
|
512
523
|
});
|
|
513
524
|
stableCommand.command("prepare").description("消费 pnpm change intents 并准备 Release PR").action(async () => {
|
|
514
525
|
await runReleaseAction(async () => {
|
|
515
|
-
const { prepareStable } = await import("./commands-
|
|
526
|
+
const { prepareStable } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
516
527
|
await prepareStable({ cwd });
|
|
517
528
|
logger.success("stable release preparation finished!");
|
|
518
529
|
});
|
|
519
530
|
});
|
|
520
531
|
stableCommand.command("publish").description("发布 main 分支上尚未发布的包").action(async () => {
|
|
521
532
|
await runReleaseAction(async () => {
|
|
522
|
-
const { publishStable } = await import("./commands-
|
|
533
|
+
const { publishStable } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
523
534
|
await publishStable({ cwd });
|
|
524
535
|
logger.success("stable package publish finished!");
|
|
525
536
|
});
|
|
@@ -527,21 +538,21 @@ function registerReleaseCommands(program, cwd) {
|
|
|
527
538
|
const preCommand = releaseCommand.command("pre").description("执行或管理 prerelease 发布");
|
|
528
539
|
preCommand.command("publish").alias("run").description("在 alpha/beta/rc/next 分支发布 prerelease").action(async () => {
|
|
529
540
|
await runReleaseAction(async () => {
|
|
530
|
-
const { releasePrerelease } = await import("./commands-
|
|
541
|
+
const { releasePrerelease } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
531
542
|
await releasePrerelease({ cwd });
|
|
532
543
|
logger.success("prerelease finished!");
|
|
533
544
|
});
|
|
534
545
|
});
|
|
535
546
|
preCommand.command("enter").description("进入 pnpm prerelease lane").argument("<tag>", "alpha / beta / rc / next").action(async (tag) => {
|
|
536
547
|
await runReleaseAction(async () => {
|
|
537
|
-
const { enterPrerelease } = await import("./commands-
|
|
548
|
+
const { enterPrerelease } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
538
549
|
await enterPrerelease(tag, { cwd });
|
|
539
550
|
logger.success(`entered ${tag} prerelease mode!`);
|
|
540
551
|
});
|
|
541
552
|
});
|
|
542
553
|
preCommand.command("exit").description("退出 pnpm prerelease lane").action(async () => {
|
|
543
554
|
await runReleaseAction(async () => {
|
|
544
|
-
const { exitPrerelease } = await import("./commands-
|
|
555
|
+
const { exitPrerelease } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
545
556
|
await exitPrerelease({ cwd });
|
|
546
557
|
logger.success("exited prerelease mode!");
|
|
547
558
|
});
|
|
@@ -552,7 +563,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
552
563
|
const skillTargets = ["codex", "claude"];
|
|
553
564
|
function registerSkillsCommands(program, cwd) {
|
|
554
565
|
program.command("skills").alias("sk").description("技能工具集").command("sync").description("同步 resources/skills/icebreakers-monorepo-cli 到全局目录").alias("s").option("--codex", "同步到 ~/.codex/skills").option("--claude", "同步到 ~/.claude/skills").option("--all", "同步全部目标").action(async (opts) => {
|
|
555
|
-
const { syncSkills } = await import("./commands-
|
|
566
|
+
const { syncSkills } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
556
567
|
const selected = /* @__PURE__ */ new Set();
|
|
557
568
|
if (opts.all) for (const target of skillTargets) selected.add(target);
|
|
558
569
|
else {
|
|
@@ -672,7 +683,7 @@ function registerTemplatesCommands(program) {
|
|
|
672
683
|
program.command("templates").alias("tpl").description("列出可用的内置模板").argument("[key]", "查看指定模板详情").option("-c, --category <category>", "按模板分类过滤:library / app / service / docs / tool").option("--check", "检查内置模板元数据、目录和临时文件").option("--json", "输出 JSON,方便脚本消费").option("--markdown", "输出 Markdown,方便同步文档").option("--out <file>", "把当前输出写入文件").action(async (key, opts) => {
|
|
673
684
|
const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
|
|
674
685
|
if (opts.check) {
|
|
675
|
-
const { checkTemplates } = await import("./commands-
|
|
686
|
+
const { checkTemplates } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
676
687
|
const report = await checkTemplates();
|
|
677
688
|
if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
|
|
678
689
|
else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
|
|
@@ -751,7 +762,7 @@ function normalizeToolingTargets(tooling) {
|
|
|
751
762
|
function registerToolingCommands(program, cwd) {
|
|
752
763
|
program.command("tooling").alias("tg").description("工程化配置命令").command("init").description(`生成 tooling 配置(可选值:${initToolingTargets.join(", ")})`).alias("i").argument("[tooling...]").option("-a, --all", "生成全部 tooling 配置").option("-f, --force", "覆盖已存在的 tooling 配置文件").action(async (tooling = [], opts) => {
|
|
753
764
|
const normalizedTooling = normalizeToolingTargets(tooling);
|
|
754
|
-
const { initTooling } = await import("./commands-
|
|
765
|
+
const { initTooling } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
755
766
|
await initTooling(cwd, {
|
|
756
767
|
...normalizedTooling ? { targets: normalizedTooling } : {},
|
|
757
768
|
...opts.all !== void 0 ? { all: opts.all } : {},
|
|
@@ -922,7 +933,7 @@ async function emitCheckPlan(plan, opts, cwd) {
|
|
|
922
933
|
}
|
|
923
934
|
function registerTopLevelCommands(program, cwd) {
|
|
924
935
|
program.command("init").description("初始化当前 workspace,并生成推荐配置").option("--preset <preset>", "初始化预设:minimal / standard", "standard").option("-f, --force", "覆盖已存在的 tooling 配置文件").option("--overwrite", "覆盖 setup 管理的已存在文件").option("-y, --yes", "使用默认值跳过所有交互,适合 CI").action(async (opts) => {
|
|
925
|
-
const { init } = await import("./commands-
|
|
936
|
+
const { init } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
926
937
|
await init(cwd, {
|
|
927
938
|
...opts.preset !== void 0 ? { preset: opts.preset } : {},
|
|
928
939
|
...opts.force !== void 0 ? { force: opts.force } : {},
|
|
@@ -933,7 +944,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
933
944
|
logger.info("next: run `pnpm install` and `pnpm build`");
|
|
934
945
|
});
|
|
935
946
|
program.command("new").description("创建新的 package / app").argument("[name]").option("-t, --template <template>", "直接使用指定模板,跳过模板选择").option("--dry-run", "预览将要创建的目录与 package 信息,不写入文件").option("--json", "以 JSON 输出创建预览,隐含 --dry-run").option("--out <file>", "把创建预览写入文件,隐含 --dry-run").action(async (inputName, opts) => {
|
|
936
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
947
|
+
const { runCreateFlow } = await import("./create-flow-D-_VjRtz.mjs");
|
|
937
948
|
const result = await runCreateFlow(cwd, inputName, {
|
|
938
949
|
...opts.template !== void 0 ? { template: opts.template } : {},
|
|
939
950
|
...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
|
|
@@ -951,10 +962,10 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
951
962
|
...opts.staged !== void 0 ? { staged: opts.staged } : {},
|
|
952
963
|
...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
|
|
953
964
|
};
|
|
954
|
-
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-
|
|
965
|
+
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
955
966
|
if (opts.dryRun || opts.json || opts.markdown || opts.out) {
|
|
956
967
|
if (opts.full) {
|
|
957
|
-
const { resolveFullWorkspaceCheckPlan } = await import("./commands-
|
|
968
|
+
const { resolveFullWorkspaceCheckPlan } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
958
969
|
await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
|
|
959
970
|
return;
|
|
960
971
|
}
|
|
@@ -965,7 +976,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
965
976
|
logger.success("check finished!");
|
|
966
977
|
});
|
|
967
978
|
program.command("doctor").description("诊断当前仓库是否适合直接开始使用").option("--json", "输出 JSON 报告,方便 CI 或脚本消费").option("--markdown", "输出 Markdown 报告,方便粘贴到 issue 或 PR").option("--out <file>", "把诊断报告写入文件").option("--redact", "脱敏 workspace/cwd/home 绝对路径后再输出").option("--strict", "把 warning 也视为失败,适合 CI 门禁").action(async (opts) => {
|
|
968
|
-
const { runDoctor } = await import("./commands-
|
|
979
|
+
const { runDoctor } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
969
980
|
const report = await runDoctor(cwd);
|
|
970
981
|
await emitDoctorReport(report, opts, cwd);
|
|
971
982
|
if (opts.out || opts.json || opts.markdown) {
|
|
@@ -988,7 +999,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
988
999
|
logger.success("doctor finished!");
|
|
989
1000
|
});
|
|
990
1001
|
program.command("upgrade").description("同步仓库标准资产与脚本").option("-i,--interactive").option("-c,--core", "仅同步核心配置,跳过 GitHub 相关资产").option("--outDir <dir>", "Output directory").option("-s,--skip-overwrite", "skip overwrite").option("-y, --yes", "跳过交互并覆盖 drifted 标准资产").option("--overwrite", "覆盖 drifted 标准资产").option("--no-overwrite", "不覆盖 drifted 标准资产").option("--overwrite-release", "覆盖未标记的自定义 release workflow").action(async (opts) => {
|
|
991
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
1002
|
+
const { upgradeMonorepo } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
992
1003
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
993
1004
|
logger.success("upgrade finished!");
|
|
994
1005
|
});
|
|
@@ -998,22 +1009,22 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
998
1009
|
function registerVerifyCommands(program, cwd) {
|
|
999
1010
|
const verifyCommand = program.command("verify").alias("v").description("本地校验工具集");
|
|
1000
1011
|
verifyCommand.command("pre-push").description("按推送变更范围执行 build/test/tsd 校验").alias("push").action(async () => {
|
|
1001
|
-
const { verifyPrePush } = await import("./commands-
|
|
1012
|
+
const { verifyPrePush } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1002
1013
|
await verifyPrePush({ cwd });
|
|
1003
1014
|
});
|
|
1004
1015
|
verifyCommand.command("pre-commit").description("执行 lint-staged 校验").alias("commit").action(async () => {
|
|
1005
|
-
const { verifyPreCommit } = await import("./commands-
|
|
1016
|
+
const { verifyPreCommit } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1006
1017
|
await verifyPreCommit({ cwd });
|
|
1007
1018
|
});
|
|
1008
1019
|
verifyCommand.command("commit-msg").description("执行 commitlint 校验").alias("msg").argument("<edit-file>").action(async (editFile) => {
|
|
1009
|
-
const { verifyCommitMsg } = await import("./commands-
|
|
1020
|
+
const { verifyCommitMsg } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1010
1021
|
await verifyCommitMsg({
|
|
1011
1022
|
cwd,
|
|
1012
1023
|
editFile
|
|
1013
1024
|
});
|
|
1014
1025
|
});
|
|
1015
1026
|
verifyCommand.command("staged-typecheck").description("按暂存文件所在 workspace 执行 typecheck").alias("tc").argument("[files...]").action(async (files = []) => {
|
|
1016
|
-
const { verifyStagedTypecheck } = await import("./commands-
|
|
1027
|
+
const { verifyStagedTypecheck } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1017
1028
|
verifyStagedTypecheck(files, { cwd });
|
|
1018
1029
|
});
|
|
1019
1030
|
}
|
|
@@ -1092,12 +1103,12 @@ async function emitWorkspaceList(result, opts) {
|
|
|
1092
1103
|
function registerWorkspaceCommands(program, cwd) {
|
|
1093
1104
|
const workspaceCommand = program.command("workspace").alias("ws").description("工作区命令");
|
|
1094
1105
|
workspaceCommand.command("upgrade").description("升级/同步 monorepo 相关包").alias("up").option("-i,--interactive").option("-c,--core", "仅同步核心配置,跳过 GitHub 相关资产").option("--outDir <dir>", "Output directory").option("-s,--skip-overwrite", "skip overwrite").option("-y, --yes", "跳过交互并覆盖 drifted 标准资产").option("--overwrite", "覆盖 drifted 标准资产").option("--no-overwrite", "不覆盖 drifted 标准资产").option("--overwrite-release", "覆盖未标记的自定义 release workflow").action(async (opts) => {
|
|
1095
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
1106
|
+
const { upgradeMonorepo } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1096
1107
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
1097
1108
|
logger.success("workspace upgrade finished!");
|
|
1098
1109
|
});
|
|
1099
1110
|
workspaceCommand.command("init").description("初始化工作区元信息(README、package.json、pnpm intent、issue template)").alias("i").action(async () => {
|
|
1100
|
-
const { initMetadata } = await import("./commands-
|
|
1111
|
+
const { initMetadata } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1101
1112
|
await initMetadata(cwd);
|
|
1102
1113
|
logger.success("workspace init finished!");
|
|
1103
1114
|
});
|
|
@@ -1110,7 +1121,7 @@ function registerWorkspaceCommands(program, cwd) {
|
|
|
1110
1121
|
}), opts);
|
|
1111
1122
|
});
|
|
1112
1123
|
workspaceCommand.command("clean").description("清除选中的包").alias("rm").option("-y, --yes", "跳过交互直接清理(等价 autoConfirm)").option("--include-private", "包含 private 包").option("--pinned-version <version>", "覆盖写入的 repoctl 版本").action(async (opts) => {
|
|
1113
|
-
const { cleanProjects } = await import("./commands-
|
|
1124
|
+
const { cleanProjects } = await import("./commands-DwvtvWjz.mjs").then((n) => n.t);
|
|
1114
1125
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
1115
1126
|
logger.success("workspace clean finished!");
|
|
1116
1127
|
});
|
|
@@ -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 { _ as isIgnorableFsError, c as devDependencies$1, d as logger, g as fs$1, i as packageDir, n as assetsDir, o as templatesDir, s as dependencies, t as initToolingTargets, u as version$1 } from "./types-
|
|
3
|
+
import { _ as isIgnorableFsError, c as devDependencies$1, d as logger, g as fs$1, i as packageDir, n as assetsDir, o as templatesDir, s as dependencies, t as initToolingTargets, u as version$1 } from "./types-CLzhRYdV.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-Bn3XOfO0.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 } from "node:fs/promises";
|
|
11
|
+
import { access, readFile, readdir, realpath } 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";
|
|
@@ -2284,6 +2284,9 @@ function uniqueCommits(commits) {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
return [...merged.values()];
|
|
2286
2286
|
}
|
|
2287
|
+
function isAutomationContributor(value) {
|
|
2288
|
+
return /github-actions|dependabot|renovate|\[bot\]$/i.test(value);
|
|
2289
|
+
}
|
|
2287
2290
|
function buildPackageCompareUrl(release, metadata) {
|
|
2288
2291
|
if (!release.previousVersion || !metadata.repository || !/^[^/]+\/[^/]+$/.test(metadata.repository)) return;
|
|
2289
2292
|
const serverUrl = (metadata.serverUrl || "https://github.com").replace(/\/$/, "");
|
|
@@ -2305,6 +2308,8 @@ function parseReferences(commits, content) {
|
|
|
2305
2308
|
const pullRequests = /* @__PURE__ */ new Set();
|
|
2306
2309
|
const issues = /* @__PURE__ */ new Set();
|
|
2307
2310
|
for (const message of [...commits.map((commit) => [commit.subject, commit.body ?? ""].join("\n")), content]) {
|
|
2311
|
+
for (const match of message.matchAll(/\]\([^)]*\/pull\/(\d+)\)/g)) pullRequests.add(Number(match[1]));
|
|
2312
|
+
for (const match of message.matchAll(/\]\([^)]*\/issues\/(\d+)\)/g)) issues.add(Number(match[1]));
|
|
2308
2313
|
for (const match of message.matchAll(/\(#(\d+)\)/g)) pullRequests.add(Number(match[1]));
|
|
2309
2314
|
for (const match of message.matchAll(/(?:^|\W)#(\d+)\b/g)) {
|
|
2310
2315
|
const number = Number(match[1]);
|
|
@@ -2342,6 +2347,7 @@ function sourceCategory(commits) {
|
|
|
2342
2347
|
}
|
|
2343
2348
|
}
|
|
2344
2349
|
function classifyChange(heading, summary, commits) {
|
|
2350
|
+
if (/dependenc(?:y|ies)/i.test(heading)) return "maintenance";
|
|
2345
2351
|
const fromCommit = sourceCategory(commits);
|
|
2346
2352
|
if (fromCommit) return fromCommit;
|
|
2347
2353
|
const categoryHint = [heading, summary].join(" ").toLowerCase();
|
|
@@ -2384,6 +2390,35 @@ function readMarkdownEntries(content) {
|
|
|
2384
2390
|
summary: content.trim()
|
|
2385
2391
|
}];
|
|
2386
2392
|
}
|
|
2393
|
+
function normalizeMarkdownEntry(item) {
|
|
2394
|
+
const raw = item.summary.replace(/\r?\n/g, " ").replace(/\s+/g, " ").trim();
|
|
2395
|
+
const commitMatches = [...raw.matchAll(/\[{1,2}`?([0-9a-f]{7,40})`?\]\(([^)]+\/commit\/[^)]+)\)/gi)];
|
|
2396
|
+
const pullRequests = [...raw.matchAll(/\[#(\d+)\]\(([^)]+\/pull\/\d+)\)/gi)].map((match) => Number(match[1]));
|
|
2397
|
+
const issues = [...raw.matchAll(/\[#(\d+)\]\(([^)]+\/issues\/\d+)\)/gi)].map((match) => Number(match[1]));
|
|
2398
|
+
const authors = [...raw.matchAll(/\bby\s+(@?[\w-]+(?:\[bot\])?)/gi)].map((match) => match[1]);
|
|
2399
|
+
const arrowDependency = raw.match(/→\s*`([^`]+)`/)?.[1];
|
|
2400
|
+
const dependencyVersions = [...raw.matchAll(/(?:^|\s)((?:@[\w.-]+\/)?[\w.-]+@\d+\.\d+\.\d+(?:-[\w.-]+)?)/g)].map((match) => match[1]);
|
|
2401
|
+
const dependencyLabel = /\bdependenc(?:y|ies):/i.test(raw) ? raw.replace(/^.*?\bdependenc(?:y|ies):/i, "").trim().replace(/^[-*]\s*/, "").replace(/^`|`$/g, "") : void 0;
|
|
2402
|
+
const dependencyName = arrowDependency ?? (dependencyVersions.length ? [...new Set(dependencyVersions)].join(", ") : dependencyLabel);
|
|
2403
|
+
const hasDependency = /\bupdated\s+dependenc(?:y|ies)\b|Dependencies:|Dependency:|\*\*Dependencies\*\*|\*\*Dependency\*\*/i.test(raw) || Boolean(dependencyName);
|
|
2404
|
+
const summary = hasDependency && dependencyName ? dependencyVersions.length > 1 ? `Updated dependencies: ${[...new Set(dependencyVersions)].join(", ")}.` : `Updated dependency to ${dependencyName}.` : raw.replace(/\[{1,2}`?([0-9a-f]{7,40})`?\]\([^)]+\)/gi, "").replace(/\[#\d+\]\([^)]+\)/g, "").replace(/\bby\s+@?[\w-]+(?:\[bot\])?/gi, "").replace(/\*\*/g, "").replace(/`/g, "").replace(/^[-*]\s+/, "").replace(/^[^\p{L}\p{N}]+/u, "").replace(/\s+/g, " ").trim();
|
|
2405
|
+
const categoryHint = /🚨|breaking/i.test(raw) ? "🚨" : /🚀|✨/.test(raw) ? "🚀" : /🐛|🐞/.test(raw) ? "🐞" : hasDependency ? "Dependencies" : "";
|
|
2406
|
+
const commits = commitMatches.map((match) => ({
|
|
2407
|
+
sha: match[2]?.match(/\/commit\/([0-9a-f]{7,40})/i)?.[1] ?? match[1],
|
|
2408
|
+
subject: `${hasDependency ? "chore" : categoryHint === "🐞" ? "fix" : categoryHint === "🚀" ? "feat" : "chore"}: ${summary}`,
|
|
2409
|
+
...authors[0] ? { author: authors[0] } : {},
|
|
2410
|
+
summary
|
|
2411
|
+
}));
|
|
2412
|
+
return {
|
|
2413
|
+
heading: categoryHint ? `${item.heading} ${categoryHint}` : item.heading,
|
|
2414
|
+
summary,
|
|
2415
|
+
commits,
|
|
2416
|
+
pullRequests: [...new Set(pullRequests)],
|
|
2417
|
+
issues: [...new Set(issues)],
|
|
2418
|
+
authors: [...new Set(authors)],
|
|
2419
|
+
raw
|
|
2420
|
+
};
|
|
2421
|
+
}
|
|
2387
2422
|
function commitsForPackage(commits, packageName) {
|
|
2388
2423
|
return uniqueCommits(commits.filter((commit) => !commit.packages?.length || commit.packages.includes(packageName)));
|
|
2389
2424
|
}
|
|
@@ -2406,20 +2441,21 @@ function commitsForEntry(commits, summary) {
|
|
|
2406
2441
|
function buildEntries(release, commits) {
|
|
2407
2442
|
const packageCommits = commitsForPackage(commits, release.name);
|
|
2408
2443
|
return readMarkdownEntries(release.content).flatMap((item) => {
|
|
2409
|
-
const
|
|
2444
|
+
const normalized = normalizeMarkdownEntry(item);
|
|
2445
|
+
const summary = normalized.summary;
|
|
2410
2446
|
if (!summary) return [];
|
|
2411
|
-
const entryCommits = commitsForEntry(packageCommits, summary);
|
|
2412
|
-
const refs = parseReferences(entryCommits, summary);
|
|
2447
|
+
const entryCommits = uniqueCommits([...commitsForEntry(packageCommits, summary), ...normalized.commits]);
|
|
2448
|
+
const refs = parseReferences(entryCommits, [normalized.raw, summary].join("\n"));
|
|
2413
2449
|
return [{
|
|
2414
2450
|
packageName: release.name,
|
|
2415
2451
|
version: release.version,
|
|
2416
2452
|
...release.npmUrl ? { npmUrl: release.npmUrl } : {},
|
|
2417
|
-
category: classifyChange(
|
|
2453
|
+
category: classifyChange(normalized.heading, summary, entryCommits),
|
|
2418
2454
|
summary,
|
|
2419
2455
|
commits: entryCommits,
|
|
2420
|
-
pullRequests: refs.pullRequests,
|
|
2421
|
-
issues: refs.issues,
|
|
2422
|
-
authors: entryCommits.map((commit) => commit.author).filter((author) => Boolean(author))
|
|
2456
|
+
pullRequests: [.../* @__PURE__ */ new Set([...refs.pullRequests, ...normalized.pullRequests])].sort((a, b) => a - b),
|
|
2457
|
+
issues: [.../* @__PURE__ */ new Set([...refs.issues, ...normalized.issues])].sort((a, b) => a - b),
|
|
2458
|
+
authors: [.../* @__PURE__ */ new Set([...normalized.authors, ...entryCommits.map((commit) => commit.author).filter((author) => Boolean(author))])]
|
|
2423
2459
|
}];
|
|
2424
2460
|
});
|
|
2425
2461
|
}
|
|
@@ -2455,7 +2491,7 @@ function formatContributor(value) {
|
|
|
2455
2491
|
return /^[\w-]+$/.test(value) ? `@${value}` : value;
|
|
2456
2492
|
}
|
|
2457
2493
|
function formatContributors(contributors) {
|
|
2458
|
-
const unique = [...new Set(contributors.map((value) => value.trim()).filter(
|
|
2494
|
+
const unique = [...new Set(contributors.map((value) => value.trim()).filter((value) => value && !isAutomationContributor(value)))].sort((a, b) => a.localeCompare(b));
|
|
2459
2495
|
return unique.length ? [
|
|
2460
2496
|
"## ❤️ Contributors",
|
|
2461
2497
|
"",
|
|
@@ -2502,7 +2538,7 @@ function renderGitHubRelease(document, metadata = {}) {
|
|
|
2502
2538
|
const section = formatCategoryEntries(document.entries, category, metadata, 3, true);
|
|
2503
2539
|
if (section.length) sections.push(...sections.length ? ["", ...section] : section);
|
|
2504
2540
|
}
|
|
2505
|
-
const contributors = [...new Set(document.contributors)].sort((a, b) => a.localeCompare(b));
|
|
2541
|
+
const contributors = [...new Set(document.contributors)].filter((value) => !isAutomationContributor(value)).sort((a, b) => a.localeCompare(b));
|
|
2506
2542
|
if (contributors.length) sections.push("", "### ❤️ Contributors", "", `Thanks to ${contributors.map(formatContributor).join(" · ")}`);
|
|
2507
2543
|
if (document.compareUrls.length) sections.push("", `##### [View changes on GitHub](${document.compareUrls[0]})`);
|
|
2508
2544
|
return sections.join("\n");
|
|
@@ -2723,6 +2759,17 @@ function buildReleasePackage(release) {
|
|
|
2723
2759
|
...packageLinks
|
|
2724
2760
|
};
|
|
2725
2761
|
}
|
|
2762
|
+
function buildReleaseNoteDocumentFromReleases(releases, metadata) {
|
|
2763
|
+
const entries = releases.flatMap((release) => buildEntries(release, metadata.commits ?? []));
|
|
2764
|
+
const contributors = [.../* @__PURE__ */ new Set([...metadata.contributors ?? [], ...entries.flatMap((entry) => entry.authors)])].filter((value) => !isAutomationContributor(value));
|
|
2765
|
+
const compareUrls = releases.map((release) => buildPackageCompareUrl(release, metadata)).filter((url) => Boolean(url));
|
|
2766
|
+
return {
|
|
2767
|
+
packages: releases.map(buildReleasePackage),
|
|
2768
|
+
entries,
|
|
2769
|
+
contributors,
|
|
2770
|
+
compareUrls
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2726
2773
|
async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
|
|
2727
2774
|
const workspacePackages = await getWorkspacePackages(cwd);
|
|
2728
2775
|
const releases = [];
|
|
@@ -2745,15 +2792,18 @@ async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
|
|
|
2745
2792
|
});
|
|
2746
2793
|
}
|
|
2747
2794
|
}
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2795
|
+
return buildReleaseNoteDocumentFromReleases(releases, metadata);
|
|
2796
|
+
}
|
|
2797
|
+
function buildGitHubReleaseBodyFromChangelog(packageName, packageVersion, changelog, metadata = {}) {
|
|
2798
|
+
const section = readVersionSection(changelog, packageVersion);
|
|
2799
|
+
if (!section?.content) return "No significant changes.";
|
|
2800
|
+
return renderGitHubRelease(buildReleaseNoteDocumentFromReleases([{
|
|
2801
|
+
name: packageName,
|
|
2802
|
+
version: packageVersion,
|
|
2803
|
+
...section.previousVersion ? { previousVersion: section.previousVersion } : {},
|
|
2804
|
+
npmUrl: buildNpmPackageUrl(packageName, packageVersion),
|
|
2805
|
+
content: section.content
|
|
2806
|
+
}], metadata), metadata);
|
|
2757
2807
|
}
|
|
2758
2808
|
//#endregion
|
|
2759
2809
|
//#region src/commands/release/github.ts
|
|
@@ -2894,6 +2944,23 @@ var GitHubClient = class {
|
|
|
2894
2944
|
return recovered.data;
|
|
2895
2945
|
}
|
|
2896
2946
|
}
|
|
2947
|
+
async listReleases() {
|
|
2948
|
+
const releases = [];
|
|
2949
|
+
for (let page = 1;; page++) {
|
|
2950
|
+
const pageReleases = (await this.request("GET", `/releases?per_page=100&page=${page}`)).data ?? [];
|
|
2951
|
+
releases.push(...pageReleases);
|
|
2952
|
+
if (pageReleases.length < 100) break;
|
|
2953
|
+
}
|
|
2954
|
+
return releases;
|
|
2955
|
+
}
|
|
2956
|
+
async updateRelease(options) {
|
|
2957
|
+
const response = await this.request("PATCH", `/releases/${options.id}`, {
|
|
2958
|
+
name: options.name,
|
|
2959
|
+
body: options.body
|
|
2960
|
+
});
|
|
2961
|
+
if (!response.data) throw new GitHubApiError(`GitHub did not return release ${options.id} after update`, response.status);
|
|
2962
|
+
return response.data;
|
|
2963
|
+
}
|
|
2897
2964
|
async enrichReleaseNote(document) {
|
|
2898
2965
|
try {
|
|
2899
2966
|
const commitAuthors = /* @__PURE__ */ new Map();
|
|
@@ -2923,7 +2990,7 @@ var GitHubClient = class {
|
|
|
2923
2990
|
...document.contributors,
|
|
2924
2991
|
...commitAuthors.values(),
|
|
2925
2992
|
...referenceAuthors
|
|
2926
|
-
])]
|
|
2993
|
+
])].filter((value) => !isAutomationContributor(value))
|
|
2927
2994
|
};
|
|
2928
2995
|
} catch (error) {
|
|
2929
2996
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -3069,8 +3136,14 @@ function resolveGitHub(options) {
|
|
|
3069
3136
|
function resolveTarget(options) {
|
|
3070
3137
|
return getReleaseEnv(options)["GITHUB_SHA"]?.trim() || capture("git", ["rev-parse", "HEAD"], options);
|
|
3071
3138
|
}
|
|
3139
|
+
function formatPublishedPackageSummary(packages) {
|
|
3140
|
+
return ["Published packages:", ...packages.length ? packages.map((pkg) => ` - ${pkg.name}@${pkg.version}`) : [" (none)"]].join("\n");
|
|
3141
|
+
}
|
|
3072
3142
|
async function publishMetadata(packages, options, prerelease = false) {
|
|
3073
|
-
if (!packages.length)
|
|
3143
|
+
if (!packages.length) {
|
|
3144
|
+
logger.success(formatPublishedPackageSummary(packages));
|
|
3145
|
+
return;
|
|
3146
|
+
}
|
|
3074
3147
|
const github = resolveGitHub(options);
|
|
3075
3148
|
const target = resolveTarget(options);
|
|
3076
3149
|
const releaseEnv = getReleaseEnv(options);
|
|
@@ -3132,6 +3205,7 @@ async function publishMetadata(packages, options, prerelease = false) {
|
|
|
3132
3205
|
body
|
|
3133
3206
|
});
|
|
3134
3207
|
}
|
|
3208
|
+
logger.success(formatPublishedPackageSummary(packages));
|
|
3135
3209
|
}
|
|
3136
3210
|
async function createReleasePullRequest(options) {
|
|
3137
3211
|
const branch = resolveBranch(options);
|
|
@@ -3252,6 +3326,105 @@ async function releaseCi(options) {
|
|
|
3252
3326
|
await publishMetadata(await readPublishSummary(options.cwd), options);
|
|
3253
3327
|
}
|
|
3254
3328
|
//#endregion
|
|
3329
|
+
//#region src/commands/release/repair.ts
|
|
3330
|
+
function parseReleaseTag(tag) {
|
|
3331
|
+
const separator = tag.lastIndexOf("@");
|
|
3332
|
+
if (separator <= 0) return;
|
|
3333
|
+
const packageName = tag.slice(0, separator);
|
|
3334
|
+
const version = tag.slice(separator + 1);
|
|
3335
|
+
if (!/^\d+\.\d+\.\d+(?:-[0-9a-z.-]+)?(?:\+[0-9a-z.-]+)?$/i.test(version)) return;
|
|
3336
|
+
return {
|
|
3337
|
+
packageName,
|
|
3338
|
+
version
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
function packagePath(cwd, rootDir) {
|
|
3342
|
+
return path.relative(cwd, rootDir).replaceAll("\\", "/");
|
|
3343
|
+
}
|
|
3344
|
+
async function findTaggedPackageDirectory(tag, packageName, currentDirectories, options) {
|
|
3345
|
+
const currentDirectory = currentDirectories.get(packageName);
|
|
3346
|
+
if (currentDirectory) return currentDirectory;
|
|
3347
|
+
let packageFiles;
|
|
3348
|
+
try {
|
|
3349
|
+
packageFiles = capture("git", [
|
|
3350
|
+
"ls-tree",
|
|
3351
|
+
"-r",
|
|
3352
|
+
"--name-only",
|
|
3353
|
+
tag
|
|
3354
|
+
], options).split(/\r?\n/).filter((file) => file === "package.json" || file.endsWith("/package.json"));
|
|
3355
|
+
} catch {
|
|
3356
|
+
return;
|
|
3357
|
+
}
|
|
3358
|
+
for (const packageFile of packageFiles) try {
|
|
3359
|
+
if (JSON.parse(capture("git", ["show", `${tag}:${packageFile}`], options)).name === packageName) return packageFile === "package.json" ? "." : path.dirname(packageFile);
|
|
3360
|
+
} catch {}
|
|
3361
|
+
}
|
|
3362
|
+
async function readTagChangelog(tag, relativePackagePath, options) {
|
|
3363
|
+
const result = (options.spawn ?? spawnSync)("git", ["show", `${tag}:${relativePackagePath}/CHANGELOG.md`], {
|
|
3364
|
+
cwd: options.cwd,
|
|
3365
|
+
encoding: "utf8",
|
|
3366
|
+
shell: false,
|
|
3367
|
+
stdio: [
|
|
3368
|
+
"ignore",
|
|
3369
|
+
"pipe",
|
|
3370
|
+
"ignore"
|
|
3371
|
+
]
|
|
3372
|
+
});
|
|
3373
|
+
if (result.status !== 0) return;
|
|
3374
|
+
return result.stdout?.toString().trim() || void 0;
|
|
3375
|
+
}
|
|
3376
|
+
function releaseMetadata(options) {
|
|
3377
|
+
const env = getReleaseEnv(options);
|
|
3378
|
+
return {
|
|
3379
|
+
...env["GITHUB_REPOSITORY"] ? { repository: env["GITHUB_REPOSITORY"] } : {},
|
|
3380
|
+
...env["GITHUB_SERVER_URL"] ? { serverUrl: env["GITHUB_SERVER_URL"] } : {}
|
|
3381
|
+
};
|
|
3382
|
+
}
|
|
3383
|
+
async function repairReleaseNotes(options) {
|
|
3384
|
+
if (!options.all && !options.tag) throw new ReleaseCommandError("release notes repair requires --all or --tag <package@version>");
|
|
3385
|
+
const github = options.github ?? new GitHubClient();
|
|
3386
|
+
if (!github.listReleases || !github.updateRelease) throw new ReleaseCommandError("GitHub release repair requires listReleases and updateRelease operations");
|
|
3387
|
+
const releases = await github.listReleases();
|
|
3388
|
+
const selected = options.tag ? releases.filter((release) => release.tag_name === options.tag) : releases;
|
|
3389
|
+
const packages = await getWorkspacePackages(options.cwd);
|
|
3390
|
+
const workspaceRoot = await realpath(options.cwd);
|
|
3391
|
+
const packageDirectories = new Map(await Promise.all(packages.filter((pkg) => typeof pkg.manifest.name === "string").map(async (pkg) => {
|
|
3392
|
+
const rootDir = await realpath(pkg.rootDir);
|
|
3393
|
+
return [pkg.manifest.name, packagePath(workspaceRoot, rootDir)];
|
|
3394
|
+
})));
|
|
3395
|
+
const metadata = releaseMetadata(options);
|
|
3396
|
+
const repaired = [];
|
|
3397
|
+
const skipped = [];
|
|
3398
|
+
for (const release of selected) {
|
|
3399
|
+
const parsed = parseReleaseTag(release.tag_name);
|
|
3400
|
+
if (!parsed) {
|
|
3401
|
+
skipped.push(release.tag_name);
|
|
3402
|
+
continue;
|
|
3403
|
+
}
|
|
3404
|
+
let relativePath = await findTaggedPackageDirectory(release.tag_name, parsed.packageName, packageDirectories, options);
|
|
3405
|
+
let changelog = relativePath ? await readTagChangelog(release.tag_name, relativePath, options) : void 0;
|
|
3406
|
+
if (!changelog) {
|
|
3407
|
+
relativePath = await findTaggedPackageDirectory(release.tag_name, parsed.packageName, /* @__PURE__ */ new Map(), options);
|
|
3408
|
+
changelog = relativePath ? await readTagChangelog(release.tag_name, relativePath, options) : void 0;
|
|
3409
|
+
}
|
|
3410
|
+
if (!changelog) {
|
|
3411
|
+
skipped.push(release.tag_name);
|
|
3412
|
+
continue;
|
|
3413
|
+
}
|
|
3414
|
+
const body = buildGitHubReleaseBodyFromChangelog(parsed.packageName, parsed.version, changelog, metadata);
|
|
3415
|
+
if (!options.dryRun && (release.name !== release.tag_name || release.body !== body)) await github.updateRelease({
|
|
3416
|
+
id: release.id,
|
|
3417
|
+
name: release.tag_name,
|
|
3418
|
+
body
|
|
3419
|
+
});
|
|
3420
|
+
repaired.push(release.tag_name);
|
|
3421
|
+
}
|
|
3422
|
+
return {
|
|
3423
|
+
repaired,
|
|
3424
|
+
skipped
|
|
3425
|
+
};
|
|
3426
|
+
}
|
|
3427
|
+
//#endregion
|
|
3255
3428
|
//#region src/commands/templates.ts
|
|
3256
3429
|
async function collectFiles(rootDir) {
|
|
3257
3430
|
const files = [];
|
|
@@ -3981,6 +4154,7 @@ var commands_exports = /* @__PURE__ */ __exportAll({
|
|
|
3981
4154
|
releaseCi: () => releaseCi,
|
|
3982
4155
|
releasePrerelease: () => releasePrerelease,
|
|
3983
4156
|
releaseStable: () => releaseStable,
|
|
4157
|
+
repairReleaseNotes: () => repairReleaseNotes,
|
|
3984
4158
|
resolveCreateNewProjectPlan: () => resolveCreateNewProjectPlan,
|
|
3985
4159
|
resolveFullWorkspaceCheckPlan: () => resolveFullWorkspaceCheckPlan,
|
|
3986
4160
|
resolveRecommendedCheckPlan: () => resolveRecommendedCheckPlan,
|
|
@@ -3997,4 +4171,4 @@ var commands_exports = /* @__PURE__ */ __exportAll({
|
|
|
3997
4171
|
verifyStagedTypecheck: () => verifyStagedTypecheck
|
|
3998
4172
|
});
|
|
3999
4173
|
//#endregion
|
|
4000
|
-
export {
|
|
4174
|
+
export { verifyPreCommit as $, getCreateChoices as A, isMatch as B, collectEnvInfo as C, runDoctor as D, collectEnvSupportBundle as E, cleanProjects as F, toPublishGitignorePath as G, getFileHash as H, getSkillTargetPaths as I, getKnownRepoCheckCommands as J, toWorkspaceGitignorePath as K, skillTargets as L, resolveCreateNewProjectPlan as M, templateMap as N, createNewProject as O, inspectMonorepoConfig as P, verifyCommitMsg as Q, syncSkills as R, createContext as S, collectEnvSnapshot as T, isFileChanged as U, setByPath as V, isGitignoreFile as W, resolveRecommendedCheckPlan as X, resolveFullWorkspaceCheckPlan as Y, runRecommendedCheck as Z, setVscodeBinaryMirror as _, createReleasePullRequest as a, generateAgenticTemplates as at, initTooling as b, prepareStable as c, enterPrerelease as d, verifyPrePush as et, exitPrerelease as f, parsePublishSummary as g, GitHubClient as h, repairReleaseNotes as i, generateAgenticTemplate as it, getTemplateMap as j, defaultTemplate as k, publishStable as l, GitHubApiError as m, upgradeMonorepo as n, createTimestampFolderName as nt, recoverUnpublished as o, loadAgenticTasks as ot, releasePrerelease as p, updateIssueTemplateConfig as q, checkTemplates as r, defaultAgenticBaseDir as rt, releaseCi as s, GitClient as st, commands_exports as t, verifyStagedTypecheck as tt, releaseStable as u, init as v, collectEnvPaths as w, normalizeInitToolingTargets as x, initMetadata as y, escapeStringRegexp as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as logger, g as fs } from "./types-
|
|
1
|
+
import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-DwvtvWjz.mjs";
|
|
2
|
+
import { d as logger, g as fs } from "./types-CLzhRYdV.mjs";
|
|
3
3
|
import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
package/dist/index.d.mts
CHANGED
|
@@ -288,6 +288,10 @@ interface GitHubRelease {
|
|
|
288
288
|
id: number;
|
|
289
289
|
html_url: string;
|
|
290
290
|
tag_name: string;
|
|
291
|
+
name?: string;
|
|
292
|
+
body?: string | null;
|
|
293
|
+
draft?: boolean;
|
|
294
|
+
prerelease?: boolean;
|
|
291
295
|
}
|
|
292
296
|
interface GitHubClientOptions {
|
|
293
297
|
token?: string;
|
|
@@ -316,12 +320,19 @@ interface EnsureTagOptions {
|
|
|
316
320
|
tag: string;
|
|
317
321
|
target: string;
|
|
318
322
|
}
|
|
323
|
+
interface UpdateReleaseOptions {
|
|
324
|
+
id: number;
|
|
325
|
+
name: string;
|
|
326
|
+
body: string;
|
|
327
|
+
}
|
|
319
328
|
interface GitHubOperations {
|
|
320
329
|
ensurePullRequest: (options: EnsurePullRequestOptions) => Promise<GitHubPullRequest>;
|
|
321
330
|
closeLegacyReleasePullRequests?: (options: CloseLegacyPullRequestsOptions) => Promise<void>;
|
|
322
331
|
ensureRelease: (options: EnsureReleaseOptions) => Promise<GitHubRelease>;
|
|
323
332
|
ensureTag?: (options: EnsureTagOptions) => Promise<void>;
|
|
324
333
|
enrichReleaseNote?: (document: ReleaseNoteDocument) => Promise<ReleaseNoteDocument>;
|
|
334
|
+
listReleases?: () => Promise<GitHubRelease[]>;
|
|
335
|
+
updateRelease?: (options: UpdateReleaseOptions) => Promise<GitHubRelease>;
|
|
325
336
|
}
|
|
326
337
|
declare class GitHubApiError extends ReleaseCommandError {
|
|
327
338
|
readonly status: number;
|
|
@@ -339,6 +350,8 @@ declare class GitHubClient implements GitHubOperations {
|
|
|
339
350
|
ensurePullRequest(options: EnsurePullRequestOptions): Promise<GitHubPullRequest>;
|
|
340
351
|
closeLegacyReleasePullRequests(options: CloseLegacyPullRequestsOptions): Promise<void>;
|
|
341
352
|
ensureRelease(options: EnsureReleaseOptions): Promise<GitHubRelease>;
|
|
353
|
+
listReleases(): Promise<GitHubRelease[]>;
|
|
354
|
+
updateRelease(options: UpdateReleaseOptions): Promise<GitHubRelease>;
|
|
342
355
|
enrichReleaseNote(document: ReleaseNoteDocument): Promise<ReleaseNoteDocument>;
|
|
343
356
|
ensureTag(options: EnsureTagOptions): Promise<void>;
|
|
344
357
|
}
|
|
@@ -372,6 +385,18 @@ declare function releasePrerelease(options: ReleaseOptions): Promise<void>;
|
|
|
372
385
|
declare function enterPrerelease(tag: string, options: ReleaseOptions): Promise<void>;
|
|
373
386
|
declare function exitPrerelease(options: ReleaseOptions): Promise<void>;
|
|
374
387
|
//#endregion
|
|
388
|
+
//#region src/commands/release/repair.d.ts
|
|
389
|
+
interface RepairReleaseNotesOptions extends ReleaseOptions {
|
|
390
|
+
tag?: string;
|
|
391
|
+
all?: boolean;
|
|
392
|
+
dryRun?: boolean;
|
|
393
|
+
github?: Pick<GitHubOperations, 'listReleases' | 'updateRelease'>;
|
|
394
|
+
}
|
|
395
|
+
declare function repairReleaseNotes(options: RepairReleaseNotesOptions): Promise<{
|
|
396
|
+
repaired: string[];
|
|
397
|
+
skipped: string[];
|
|
398
|
+
}>;
|
|
399
|
+
//#endregion
|
|
375
400
|
//#region src/commands/release/shared.d.ts
|
|
376
401
|
declare function parsePublishSummary(content: string): PublishedPackage[];
|
|
377
402
|
//#endregion
|
|
@@ -841,4 +866,4 @@ declare function escapeStringRegexp(str: string): string;
|
|
|
841
866
|
*/
|
|
842
867
|
declare function isMatch(str: string, arr: RegExp[]): boolean;
|
|
843
868
|
//#endregion
|
|
844
|
-
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 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, 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 };
|
|
869
|
+
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 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
|
|
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-DwvtvWjz.mjs";
|
|
2
2
|
import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
|
|
3
|
-
import { C as readJson, E as writeJson, S as readJSON, T as writeJSON, _ as isIgnorableFsError, a as rootDir, b as outputJson, d as logger, f as copy, h as exists, i as packageDir, l as name, m as ensureFile, n as assetsDir, o as templatesDir, p as ensureDir, r as cliName, t as initToolingTargets, u as version, v as outputFile, w as remove, x as pathExists, y as outputJSON } from "./types-
|
|
3
|
+
import { C as readJson, E as writeJson, S as readJSON, T as writeJSON, _ as isIgnorableFsError, a as rootDir, b as outputJson, d as logger, f as copy, h as exists, i as packageDir, l as name, m as ensureFile, n as assetsDir, o as templatesDir, p as ensureDir, r as cliName, t as initToolingTargets, u as version, v as outputFile, w as remove, x as pathExists, y as outputJSON } from "./types-CLzhRYdV.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-Bn3XOfO0.mjs";
|
|
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, 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 };
|
|
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 };
|
|
@@ -142,7 +142,7 @@ const logger = createConsola();
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name = "@icebreakers/monorepo";
|
|
145
|
-
var version = "5.1.
|
|
145
|
+
var version = "5.1.1";
|
|
146
146
|
var dependencies = {
|
|
147
147
|
"@icebreakers/commitlint-config": "^4.0.3",
|
|
148
148
|
"@icebreakers/eslint-config": "^7.0.3",
|