@icebreakers/monorepo 4.0.8 → 4.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,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-BfrFvR6F.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-DueweVqj.mjs").then((n) => n.t),
|
|
12
12
|
import("./config-BrLDFwAH.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-DueweVqj.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-DueweVqj.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-DueweVqj.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-DueweVqj.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-DueweVqj.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-DueweVqj.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-CqHRPOsR.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,7 +493,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
493
493
|
const releaseCommand = program.command("release").description("发布与 Changesets prerelease 工具集");
|
|
494
494
|
releaseCommand.command("stable").description("在 main 分支执行正式发布").action(async () => {
|
|
495
495
|
await runReleaseAction(async () => {
|
|
496
|
-
const { releaseStable } = await import("./commands-
|
|
496
|
+
const { releaseStable } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
497
497
|
await releaseStable({ cwd });
|
|
498
498
|
logger.success("stable release finished!");
|
|
499
499
|
});
|
|
@@ -501,21 +501,21 @@ function registerReleaseCommands(program, cwd) {
|
|
|
501
501
|
const preCommand = releaseCommand.command("pre").description("执行或管理 prerelease 发布");
|
|
502
502
|
preCommand.command("publish").alias("run").description("在 alpha/beta/rc/next 分支发布 prerelease").action(async () => {
|
|
503
503
|
await runReleaseAction(async () => {
|
|
504
|
-
const { releasePrerelease } = await import("./commands-
|
|
504
|
+
const { releasePrerelease } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
505
505
|
await releasePrerelease({ cwd });
|
|
506
506
|
logger.success("prerelease finished!");
|
|
507
507
|
});
|
|
508
508
|
});
|
|
509
509
|
preCommand.command("enter").description("进入 Changesets prerelease 模式").argument("<tag>", "alpha / beta / rc / next").action(async (tag) => {
|
|
510
510
|
await runReleaseAction(async () => {
|
|
511
|
-
const { enterPrerelease } = await import("./commands-
|
|
511
|
+
const { enterPrerelease } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
512
512
|
enterPrerelease(tag, { cwd });
|
|
513
513
|
logger.success(`entered ${tag} prerelease mode!`);
|
|
514
514
|
});
|
|
515
515
|
});
|
|
516
516
|
preCommand.command("exit").description("退出 Changesets prerelease 模式").action(async () => {
|
|
517
517
|
await runReleaseAction(async () => {
|
|
518
|
-
const { exitPrerelease } = await import("./commands-
|
|
518
|
+
const { exitPrerelease } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
519
519
|
exitPrerelease({ cwd });
|
|
520
520
|
logger.success("exited prerelease mode!");
|
|
521
521
|
});
|
|
@@ -526,7 +526,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
526
526
|
const skillTargets = ["codex", "claude"];
|
|
527
527
|
function registerSkillsCommands(program, cwd) {
|
|
528
528
|
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) => {
|
|
529
|
-
const { syncSkills } = await import("./commands-
|
|
529
|
+
const { syncSkills } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
530
530
|
const selected = /* @__PURE__ */ new Set();
|
|
531
531
|
if (opts.all) for (const target of skillTargets) selected.add(target);
|
|
532
532
|
else {
|
|
@@ -646,7 +646,7 @@ function registerTemplatesCommands(program) {
|
|
|
646
646
|
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) => {
|
|
647
647
|
const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
|
|
648
648
|
if (opts.check) {
|
|
649
|
-
const { checkTemplates } = await import("./commands-
|
|
649
|
+
const { checkTemplates } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
650
650
|
const report = await checkTemplates();
|
|
651
651
|
if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
|
|
652
652
|
else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
|
|
@@ -725,7 +725,7 @@ function normalizeToolingTargets(tooling) {
|
|
|
725
725
|
function registerToolingCommands(program, cwd) {
|
|
726
726
|
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) => {
|
|
727
727
|
const normalizedTooling = normalizeToolingTargets(tooling);
|
|
728
|
-
const { initTooling } = await import("./commands-
|
|
728
|
+
const { initTooling } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
729
729
|
await initTooling(cwd, {
|
|
730
730
|
...normalizedTooling ? { targets: normalizedTooling } : {},
|
|
731
731
|
...opts.all !== void 0 ? { all: opts.all } : {},
|
|
@@ -896,7 +896,7 @@ async function emitCheckPlan(plan, opts, cwd) {
|
|
|
896
896
|
}
|
|
897
897
|
function registerTopLevelCommands(program, cwd) {
|
|
898
898
|
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) => {
|
|
899
|
-
const { init } = await import("./commands-
|
|
899
|
+
const { init } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
900
900
|
await init(cwd, {
|
|
901
901
|
...opts.preset !== void 0 ? { preset: opts.preset } : {},
|
|
902
902
|
...opts.force !== void 0 ? { force: opts.force } : {},
|
|
@@ -907,7 +907,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
907
907
|
logger.info("next: run `pnpm install` and `pnpm build`");
|
|
908
908
|
});
|
|
909
909
|
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) => {
|
|
910
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
910
|
+
const { runCreateFlow } = await import("./create-flow-CqHRPOsR.mjs");
|
|
911
911
|
const result = await runCreateFlow(cwd, inputName, {
|
|
912
912
|
...opts.template !== void 0 ? { template: opts.template } : {},
|
|
913
913
|
...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
|
|
@@ -925,10 +925,10 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
925
925
|
...opts.staged !== void 0 ? { staged: opts.staged } : {},
|
|
926
926
|
...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
|
|
927
927
|
};
|
|
928
|
-
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-
|
|
928
|
+
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
929
929
|
if (opts.dryRun || opts.json || opts.markdown || opts.out) {
|
|
930
930
|
if (opts.full) {
|
|
931
|
-
const { resolveFullWorkspaceCheckPlan } = await import("./commands-
|
|
931
|
+
const { resolveFullWorkspaceCheckPlan } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
932
932
|
await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
@@ -939,7 +939,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
939
939
|
logger.success("check finished!");
|
|
940
940
|
});
|
|
941
941
|
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) => {
|
|
942
|
-
const { runDoctor } = await import("./commands-
|
|
942
|
+
const { runDoctor } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
943
943
|
const report = await runDoctor(cwd);
|
|
944
944
|
await emitDoctorReport(report, opts, cwd);
|
|
945
945
|
if (opts.out || opts.json || opts.markdown) {
|
|
@@ -962,7 +962,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
962
962
|
logger.success("doctor finished!");
|
|
963
963
|
});
|
|
964
964
|
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 标准资产").action(async (opts) => {
|
|
965
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
965
|
+
const { upgradeMonorepo } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
966
966
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
967
967
|
logger.success("upgrade finished!");
|
|
968
968
|
});
|
|
@@ -972,22 +972,22 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
972
972
|
function registerVerifyCommands(program, cwd) {
|
|
973
973
|
const verifyCommand = program.command("verify").alias("v").description("本地校验工具集");
|
|
974
974
|
verifyCommand.command("pre-push").description("按推送变更范围执行 build/test/tsd 校验").alias("push").action(async () => {
|
|
975
|
-
const { verifyPrePush } = await import("./commands-
|
|
975
|
+
const { verifyPrePush } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
976
976
|
await verifyPrePush({ cwd });
|
|
977
977
|
});
|
|
978
978
|
verifyCommand.command("pre-commit").description("执行 lint-staged 校验").alias("commit").action(async () => {
|
|
979
|
-
const { verifyPreCommit } = await import("./commands-
|
|
979
|
+
const { verifyPreCommit } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
980
980
|
await verifyPreCommit({ cwd });
|
|
981
981
|
});
|
|
982
982
|
verifyCommand.command("commit-msg").description("执行 commitlint 校验").alias("msg").argument("<edit-file>").action(async (editFile) => {
|
|
983
|
-
const { verifyCommitMsg } = await import("./commands-
|
|
983
|
+
const { verifyCommitMsg } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
984
984
|
await verifyCommitMsg({
|
|
985
985
|
cwd,
|
|
986
986
|
editFile
|
|
987
987
|
});
|
|
988
988
|
});
|
|
989
989
|
verifyCommand.command("staged-typecheck").description("按暂存文件所在 workspace 执行 typecheck").alias("tc").argument("[files...]").action(async (files = []) => {
|
|
990
|
-
const { verifyStagedTypecheck } = await import("./commands-
|
|
990
|
+
const { verifyStagedTypecheck } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
991
991
|
verifyStagedTypecheck(files, { cwd });
|
|
992
992
|
});
|
|
993
993
|
}
|
|
@@ -1066,12 +1066,12 @@ async function emitWorkspaceList(result, opts) {
|
|
|
1066
1066
|
function registerWorkspaceCommands(program, cwd) {
|
|
1067
1067
|
const workspaceCommand = program.command("workspace").alias("ws").description("工作区命令");
|
|
1068
1068
|
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 标准资产").action(async (opts) => {
|
|
1069
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
1069
|
+
const { upgradeMonorepo } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
1070
1070
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
1071
1071
|
logger.success("workspace upgrade finished!");
|
|
1072
1072
|
});
|
|
1073
1073
|
workspaceCommand.command("init").description("初始化工作区元信息(README、package.json、changeset、issue template)").alias("i").action(async () => {
|
|
1074
|
-
const { initMetadata } = await import("./commands-
|
|
1074
|
+
const { initMetadata } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
1075
1075
|
await initMetadata(cwd);
|
|
1076
1076
|
logger.success("workspace init finished!");
|
|
1077
1077
|
});
|
|
@@ -1084,7 +1084,7 @@ function registerWorkspaceCommands(program, cwd) {
|
|
|
1084
1084
|
}), opts);
|
|
1085
1085
|
});
|
|
1086
1086
|
workspaceCommand.command("clean").description("清除选中的包").alias("rm").option("-y, --yes", "跳过交互直接清理(等价 autoConfirm)").option("--include-private", "包含 private 包").option("--pinned-version <version>", "覆盖写入的 repoctl 版本").action(async (opts) => {
|
|
1087
|
-
const { cleanProjects } = await import("./commands-
|
|
1087
|
+
const { cleanProjects } = await import("./commands-DueweVqj.mjs").then((n) => n.t);
|
|
1088
1088
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
1089
1089
|
logger.success("workspace clean finished!");
|
|
1090
1090
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-twds-ZHy.mjs";
|
|
2
2
|
import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries } from "./workspace-BVfGk4Av.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-BfrFvR6F.mjs";
|
|
4
4
|
import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, s as resolveCommandConfig } from "./config-BrLDFwAH.mjs";
|
|
5
5
|
import { f as defineTsconfigConfig } from "./tooling-D1Bjw6xy.mjs";
|
|
6
6
|
import gitUrlParse from "git-url-parse";
|
|
@@ -1716,33 +1716,33 @@ async function setReadme_default(ctx, options = {}) {
|
|
|
1716
1716
|
//#region ../../package.json
|
|
1717
1717
|
var devDependencies = {
|
|
1718
1718
|
"@changesets/cli": "^2.31.0",
|
|
1719
|
-
"@commitlint/cli": "^21.0.
|
|
1719
|
+
"@commitlint/cli": "^21.0.1",
|
|
1720
1720
|
"@icebreakers/changelog-github": "^1.0.2",
|
|
1721
1721
|
"@icebreakers/monorepo": "workspace:*",
|
|
1722
|
-
"@types/node": "^25.
|
|
1722
|
+
"@types/node": "^25.9.1",
|
|
1723
1723
|
"@types/semver": "^7.7.1",
|
|
1724
|
-
"@vitest/coverage-v8": "~4.1.
|
|
1724
|
+
"@vitest/coverage-v8": "~4.1.7",
|
|
1725
1725
|
"ci-info": "^4.4.0",
|
|
1726
1726
|
"cross-env": "^10.1.0",
|
|
1727
1727
|
"defu": "^6.1.7",
|
|
1728
|
-
"es-toolkit": "^1.
|
|
1729
|
-
"eslint": "^10.
|
|
1728
|
+
"es-toolkit": "^1.47.0",
|
|
1729
|
+
"eslint": "^10.4.0",
|
|
1730
1730
|
"husky": "^9.1.7",
|
|
1731
|
-
"lint-staged": "^17.0.
|
|
1731
|
+
"lint-staged": "^17.0.5",
|
|
1732
1732
|
"only-allow": "^1.2.2",
|
|
1733
1733
|
"pathe": "^2.0.3",
|
|
1734
1734
|
"pkg-types": "^2.3.1",
|
|
1735
1735
|
"repoctl": "workspace:*",
|
|
1736
|
-
"stylelint": "^17.
|
|
1736
|
+
"stylelint": "^17.12.0",
|
|
1737
1737
|
"tailwindcss": "^4.3.0",
|
|
1738
1738
|
"tsd": "^0.33.0",
|
|
1739
1739
|
"tsdown": "0.22.0",
|
|
1740
1740
|
"tslib": "^2.8.1",
|
|
1741
|
-
"tsx": "^4.
|
|
1742
|
-
"turbo": "^2.9.
|
|
1741
|
+
"tsx": "^4.22.3",
|
|
1742
|
+
"turbo": "^2.9.15",
|
|
1743
1743
|
"type-fest": "^5.6.0",
|
|
1744
1744
|
"typescript": "^6.0.3",
|
|
1745
|
-
"vitest": "~4.1.
|
|
1745
|
+
"vitest": "~4.1.7",
|
|
1746
1746
|
"yaml": "^2.9.0"
|
|
1747
1747
|
};
|
|
1748
1748
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as resolveCreateNewProjectPlan, b as defaultTemplate, x as getCreateChoices, y as createNewProject } from "./commands-
|
|
2
|
-
import { d as logger, g as fs } from "./types-
|
|
1
|
+
import { C as resolveCreateNewProjectPlan, b as defaultTemplate, x as getCreateChoices, y as createNewProject } from "./commands-DueweVqj.mjs";
|
|
2
|
+
import { d as logger, g as fs } from "./types-BfrFvR6F.mjs";
|
|
3
3
|
import { s as resolveCommandConfig } from "./config-BrLDFwAH.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as escapeStringRegexp, B as resolveFullWorkspaceCheckPlan, C as resolveCreateNewProjectPlan, D as getSkillTargetPaths, E as cleanProjects, F as isGitignoreFile, G as verifyPrePush, H as runRecommendedCheck, I as toPublishGitignorePath, J as defaultAgenticBaseDir, K as verifyStagedTypecheck, L as toWorkspaceGitignorePath, M as setByPath, N as getFileHash, O as skillTargets, P as isFileChanged, Q as GitClient, R as updateIssueTemplateConfig, S as getTemplateMap, T as inspectMonorepoConfig, U as verifyCommitMsg, V as resolveRecommendedCheckPlan, W as verifyPreCommit, X as generateAgenticTemplates, Y as generateAgenticTemplate, Z as loadAgenticTasks, _ as collectEnvSupportBundle, a as exitPrerelease, c as setVscodeBinaryMirror, d as initTooling, f as normalizeInitToolingTargets, g as collectEnvSnapshot, h as collectEnvPaths, i as enterPrerelease, j as isMatch, k as syncSkills, l as init, m as collectEnvInfo, n as upgradeMonorepo, o as releasePrerelease, p as createContext, q as createTimestampFolderName, r as checkTemplates, s as releaseStable, u as initMetadata, v as runDoctor, w as templateMap, x as getCreateChoices, y as createNewProject, z as getKnownRepoCheckCommands } from "./commands-
|
|
1
|
+
import { A as escapeStringRegexp, B as resolveFullWorkspaceCheckPlan, C as resolveCreateNewProjectPlan, D as getSkillTargetPaths, E as cleanProjects, F as isGitignoreFile, G as verifyPrePush, H as runRecommendedCheck, I as toPublishGitignorePath, J as defaultAgenticBaseDir, K as verifyStagedTypecheck, L as toWorkspaceGitignorePath, M as setByPath, N as getFileHash, O as skillTargets, P as isFileChanged, Q as GitClient, R as updateIssueTemplateConfig, S as getTemplateMap, T as inspectMonorepoConfig, U as verifyCommitMsg, V as resolveRecommendedCheckPlan, W as verifyPreCommit, X as generateAgenticTemplates, Y as generateAgenticTemplate, Z as loadAgenticTasks, _ as collectEnvSupportBundle, a as exitPrerelease, c as setVscodeBinaryMirror, d as initTooling, f as normalizeInitToolingTargets, g as collectEnvSnapshot, h as collectEnvPaths, i as enterPrerelease, j as isMatch, k as syncSkills, l as init, m as collectEnvInfo, n as upgradeMonorepo, o as releasePrerelease, p as createContext, q as createTimestampFolderName, r as checkTemplates, s as releaseStable, u as initMetadata, v as runDoctor, w as templateMap, x as getCreateChoices, y as createNewProject, z as getKnownRepoCheckCommands } from "./commands-DueweVqj.mjs";
|
|
2
2
|
import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-BVfGk4Av.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-BfrFvR6F.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-BrLDFwAH.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-D1Bjw6xy.mjs";
|
|
6
6
|
export { GitClient, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, 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, pathExists, readJSON, readJson, 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 };
|
|
@@ -142,16 +142,16 @@ const logger = createConsola();
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name = "@icebreakers/monorepo";
|
|
145
|
-
var version = "4.0.
|
|
145
|
+
var version = "4.0.10";
|
|
146
146
|
var dependencies = {
|
|
147
|
-
"@icebreakers/commitlint-config": "^3.0.
|
|
148
|
-
"@icebreakers/eslint-config": "^5.0.
|
|
147
|
+
"@icebreakers/commitlint-config": "^3.0.1",
|
|
148
|
+
"@icebreakers/eslint-config": "^5.0.3",
|
|
149
149
|
"@icebreakers/monorepo-templates": "workspace:*",
|
|
150
|
-
"@icebreakers/stylelint-config": "^4.0.
|
|
150
|
+
"@icebreakers/stylelint-config": "^4.0.2",
|
|
151
151
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
152
152
|
"@pnpm/logger": "^1100.0.0",
|
|
153
|
-
"@pnpm/types": "^1101.
|
|
154
|
-
"@pnpm/worker": "^1100.1.
|
|
153
|
+
"@pnpm/types": "^1101.1.1",
|
|
154
|
+
"@pnpm/worker": "^1100.1.7",
|
|
155
155
|
"@pnpm/workspace.find-packages": "^1000.0.65",
|
|
156
156
|
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
157
157
|
"c12": "^3.3.4",
|
|
@@ -160,13 +160,13 @@ var dependencies = {
|
|
|
160
160
|
"consola": "^3.4.2",
|
|
161
161
|
"git-url-parse": "^16.1.0",
|
|
162
162
|
"klaw": "^4.1.0",
|
|
163
|
-
"lint-staged": "^17.0.
|
|
164
|
-
"p-queue": "^9.
|
|
163
|
+
"lint-staged": "^17.0.5",
|
|
164
|
+
"p-queue": "^9.3.0",
|
|
165
165
|
"pathe": "^2.0.3",
|
|
166
166
|
"picocolors": "^1.1.1",
|
|
167
|
-
"semver": "^7.8.
|
|
167
|
+
"semver": "^7.8.1",
|
|
168
168
|
"simple-git": "^3.36.0",
|
|
169
|
-
"vitest": "~4.1.
|
|
169
|
+
"vitest": "~4.1.7",
|
|
170
170
|
"yaml": "^2.9.0"
|
|
171
171
|
};
|
|
172
172
|
var devDependencies = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.10",
|
|
5
5
|
"description": "Core engine behind the repoctl monorepo CLI",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@commitlint/cli": "^21.0.
|
|
58
|
+
"@commitlint/cli": "^21.0.1",
|
|
59
59
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
60
|
-
"stylelint": "^17.
|
|
60
|
+
"stylelint": "^17.12.0",
|
|
61
61
|
"typescript": "^5.0.0 || ^6.0.0",
|
|
62
|
-
"vitest": "^4.1.
|
|
62
|
+
"vitest": "^4.1.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@commitlint/cli": {
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@icebreakers/commitlint-config": "^3.0.
|
|
83
|
-
"@icebreakers/eslint-config": "^5.0.
|
|
84
|
-
"@icebreakers/stylelint-config": "^4.0.
|
|
82
|
+
"@icebreakers/commitlint-config": "^3.0.1",
|
|
83
|
+
"@icebreakers/eslint-config": "^5.0.3",
|
|
84
|
+
"@icebreakers/stylelint-config": "^4.0.2",
|
|
85
85
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
86
86
|
"@pnpm/logger": "^1100.0.0",
|
|
87
|
-
"@pnpm/types": "^1101.
|
|
88
|
-
"@pnpm/worker": "^1100.1.
|
|
87
|
+
"@pnpm/types": "^1101.1.1",
|
|
88
|
+
"@pnpm/worker": "^1100.1.7",
|
|
89
89
|
"@pnpm/workspace.find-packages": "^1000.0.65",
|
|
90
90
|
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
91
91
|
"c12": "^3.3.4",
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"consola": "^3.4.2",
|
|
95
95
|
"git-url-parse": "^16.1.0",
|
|
96
96
|
"klaw": "^4.1.0",
|
|
97
|
-
"lint-staged": "^17.0.
|
|
98
|
-
"p-queue": "^9.
|
|
97
|
+
"lint-staged": "^17.0.5",
|
|
98
|
+
"p-queue": "^9.3.0",
|
|
99
99
|
"pathe": "^2.0.3",
|
|
100
100
|
"picocolors": "^1.1.1",
|
|
101
|
-
"semver": "^7.8.
|
|
101
|
+
"semver": "^7.8.1",
|
|
102
102
|
"simple-git": "^3.36.0",
|
|
103
|
-
"vitest": "~4.1.
|
|
103
|
+
"vitest": "~4.1.7",
|
|
104
104
|
"yaml": "^2.9.0",
|
|
105
|
-
"@icebreakers/monorepo-templates": "1.0.
|
|
105
|
+
"@icebreakers/monorepo-templates": "1.0.9"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@types/klaw": "^3.0.7",
|