@icebreakers/monorepo 4.0.3 → 4.0.5
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/README.md +1 -1
- package/dist/cli.mjs +32 -32
- package/dist/{commands-R38YllMo.mjs → commands-BDc4kaVr.mjs} +1 -1
- package/dist/{create-flow-B4hEIkS_.mjs → create-flow-BdzRAs_D.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{types-DsSOTneQ.mjs → types-l72Q1OXu.mjs} +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
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-l72Q1OXu.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-BDc4kaVr.mjs").then((n) => n.t),
|
|
12
12
|
import("./config-itCaAICn.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-BDc4kaVr.mjs").then((n) => n.t);
|
|
127
127
|
await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -445,23 +445,23 @@ async function emitEnvSupportBundle(bundle, opts, cwd) {
|
|
|
445
445
|
function registerEnvCommands(program, cwd) {
|
|
446
446
|
const envCommand = program.command("env").alias("e").description("环境命令");
|
|
447
447
|
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) => {
|
|
448
|
-
const { collectEnvInfo } = await import("./commands-
|
|
448
|
+
const { collectEnvInfo } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
449
449
|
await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
|
|
450
450
|
});
|
|
451
451
|
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) => {
|
|
452
|
-
const { collectEnvSnapshot } = await import("./commands-
|
|
452
|
+
const { collectEnvSnapshot } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
453
453
|
await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
|
|
454
454
|
});
|
|
455
455
|
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) => {
|
|
456
|
-
const { collectEnvPaths } = await import("./commands-
|
|
456
|
+
const { collectEnvPaths } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
457
457
|
await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
|
|
458
458
|
});
|
|
459
459
|
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) => {
|
|
460
|
-
const { collectEnvSupportBundle } = await import("./commands-
|
|
460
|
+
const { collectEnvSupportBundle } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
461
461
|
await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
|
|
462
462
|
});
|
|
463
463
|
envCommand.command("mirror").description("设置 VS Code binary mirror").alias("m").action(async () => {
|
|
464
|
-
const { setVscodeBinaryMirror } = await import("./commands-
|
|
464
|
+
const { setVscodeBinaryMirror } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
465
465
|
await setVscodeBinaryMirror(cwd);
|
|
466
466
|
logger.success("env mirror finished!");
|
|
467
467
|
});
|
|
@@ -470,7 +470,7 @@ function registerEnvCommands(program, cwd) {
|
|
|
470
470
|
//#region src/cli/commands/package.ts
|
|
471
471
|
function registerPackageCommands(program, cwd) {
|
|
472
472
|
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) => {
|
|
473
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
473
|
+
const { runCreateFlow } = await import("./create-flow-BdzRAs_D.mjs");
|
|
474
474
|
const result = await runCreateFlow(cwd, inputName, {
|
|
475
475
|
...opts.template !== void 0 ? { template: opts.template } : {},
|
|
476
476
|
...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
|
|
@@ -495,7 +495,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
495
495
|
const releaseCommand = program.command("release").description("发布与 Changesets prerelease 工具集");
|
|
496
496
|
releaseCommand.command("stable").description("在 main 分支执行正式发布").action(async () => {
|
|
497
497
|
await runReleaseAction(async () => {
|
|
498
|
-
const { releaseStable } = await import("./commands-
|
|
498
|
+
const { releaseStable } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
499
499
|
await releaseStable({ cwd });
|
|
500
500
|
logger.success("stable release finished!");
|
|
501
501
|
});
|
|
@@ -503,21 +503,21 @@ function registerReleaseCommands(program, cwd) {
|
|
|
503
503
|
const preCommand = releaseCommand.command("pre").description("执行或管理 prerelease 发布");
|
|
504
504
|
preCommand.command("publish").alias("run").description("在 alpha/beta/rc/next 分支发布 prerelease").action(async () => {
|
|
505
505
|
await runReleaseAction(async () => {
|
|
506
|
-
const { releasePrerelease } = await import("./commands-
|
|
506
|
+
const { releasePrerelease } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
507
507
|
await releasePrerelease({ cwd });
|
|
508
508
|
logger.success("prerelease finished!");
|
|
509
509
|
});
|
|
510
510
|
});
|
|
511
511
|
preCommand.command("enter").description("进入 Changesets prerelease 模式").argument("<tag>", "alpha / beta / rc / next").action(async (tag) => {
|
|
512
512
|
await runReleaseAction(async () => {
|
|
513
|
-
const { enterPrerelease } = await import("./commands-
|
|
513
|
+
const { enterPrerelease } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
514
514
|
enterPrerelease(tag, { cwd });
|
|
515
515
|
logger.success(`entered ${tag} prerelease mode!`);
|
|
516
516
|
});
|
|
517
517
|
});
|
|
518
518
|
preCommand.command("exit").description("退出 Changesets prerelease 模式").action(async () => {
|
|
519
519
|
await runReleaseAction(async () => {
|
|
520
|
-
const { exitPrerelease } = await import("./commands-
|
|
520
|
+
const { exitPrerelease } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
521
521
|
exitPrerelease({ cwd });
|
|
522
522
|
logger.success("exited prerelease mode!");
|
|
523
523
|
});
|
|
@@ -528,7 +528,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
528
528
|
const skillTargets = ["codex", "claude"];
|
|
529
529
|
function registerSkillsCommands(program, cwd) {
|
|
530
530
|
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) => {
|
|
531
|
-
const { syncSkills } = await import("./commands-
|
|
531
|
+
const { syncSkills } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
532
532
|
const selected = /* @__PURE__ */ new Set();
|
|
533
533
|
if (opts.all) for (const target of skillTargets) selected.add(target);
|
|
534
534
|
else {
|
|
@@ -648,7 +648,7 @@ function registerTemplatesCommands(program) {
|
|
|
648
648
|
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) => {
|
|
649
649
|
const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
|
|
650
650
|
if (opts.check) {
|
|
651
|
-
const { checkTemplates } = await import("./commands-
|
|
651
|
+
const { checkTemplates } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
652
652
|
const report = await checkTemplates();
|
|
653
653
|
if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
|
|
654
654
|
else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
|
|
@@ -727,7 +727,7 @@ function normalizeToolingTargets(tooling) {
|
|
|
727
727
|
function registerToolingCommands(program, cwd) {
|
|
728
728
|
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) => {
|
|
729
729
|
const normalizedTooling = normalizeToolingTargets(tooling);
|
|
730
|
-
const { initTooling } = await import("./commands-
|
|
730
|
+
const { initTooling } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
731
731
|
await initTooling(cwd, {
|
|
732
732
|
...normalizedTooling ? { targets: normalizedTooling } : {},
|
|
733
733
|
...opts.all !== void 0 ? { all: opts.all } : {},
|
|
@@ -898,7 +898,7 @@ async function emitCheckPlan(plan, opts, cwd) {
|
|
|
898
898
|
}
|
|
899
899
|
function registerTopLevelCommands(program, cwd) {
|
|
900
900
|
program.command("init").description("初始化当前 workspace,并生成推荐配置").alias("setup").option("--preset <preset>", "初始化预设:minimal / standard", "standard").option("-f, --force", "覆盖已存在的 tooling 配置文件").option("--overwrite", "覆盖 setup 管理的已存在文件").option("-y, --yes", "使用默认值跳过所有交互,适合 CI").action(async (opts) => {
|
|
901
|
-
const { init } = await import("./commands-
|
|
901
|
+
const { init } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
902
902
|
await init(cwd, {
|
|
903
903
|
...opts.preset !== void 0 ? { preset: opts.preset } : {},
|
|
904
904
|
...opts.force !== void 0 ? { force: opts.force } : {},
|
|
@@ -909,7 +909,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
909
909
|
logger.info("next: run `pnpm install` and `pnpm build`");
|
|
910
910
|
});
|
|
911
911
|
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) => {
|
|
912
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
912
|
+
const { runCreateFlow } = await import("./create-flow-BdzRAs_D.mjs");
|
|
913
913
|
const result = await runCreateFlow(cwd, inputName, {
|
|
914
914
|
...opts.template !== void 0 ? { template: opts.template } : {},
|
|
915
915
|
...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
|
|
@@ -927,10 +927,10 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
927
927
|
...opts.staged !== void 0 ? { staged: opts.staged } : {},
|
|
928
928
|
...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
|
|
929
929
|
};
|
|
930
|
-
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-
|
|
930
|
+
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
931
931
|
if (opts.dryRun || opts.json || opts.markdown || opts.out) {
|
|
932
932
|
if (opts.full) {
|
|
933
|
-
const { resolveFullWorkspaceCheckPlan } = await import("./commands-
|
|
933
|
+
const { resolveFullWorkspaceCheckPlan } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
934
934
|
await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
|
|
935
935
|
return;
|
|
936
936
|
}
|
|
@@ -941,7 +941,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
941
941
|
logger.success("check finished!");
|
|
942
942
|
});
|
|
943
943
|
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) => {
|
|
944
|
-
const { runDoctor } = await import("./commands-
|
|
944
|
+
const { runDoctor } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
945
945
|
const report = await runDoctor(cwd);
|
|
946
946
|
await emitDoctorReport(report, opts, cwd);
|
|
947
947
|
if (opts.out || opts.json || opts.markdown) {
|
|
@@ -964,22 +964,22 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
964
964
|
logger.success("doctor finished!");
|
|
965
965
|
});
|
|
966
966
|
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) => {
|
|
967
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
967
|
+
const { upgradeMonorepo } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
968
968
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
969
969
|
logger.success("upgrade finished!");
|
|
970
970
|
});
|
|
971
971
|
program.command("sync").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) => {
|
|
972
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
972
|
+
const { upgradeMonorepo } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
973
973
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
974
974
|
logger.success("sync finished!");
|
|
975
975
|
});
|
|
976
976
|
program.command("clean").description("兼容入口:清理选中的 workspace 包").option("-y, --yes", "跳过交互直接清理(等价 autoConfirm)").option("--include-private", "包含 private 包").option("--pinned-version <version>", "覆盖写入的 @icebreakers/monorepo 版本").action(async (opts) => {
|
|
977
|
-
const { cleanProjects } = await import("./commands-
|
|
977
|
+
const { cleanProjects } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
978
978
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
979
979
|
logger.success("clean finished!");
|
|
980
980
|
});
|
|
981
981
|
program.command("mirror").description("兼容入口:设置 VS Code binary mirror").action(async () => {
|
|
982
|
-
const { setVscodeBinaryMirror } = await import("./commands-
|
|
982
|
+
const { setVscodeBinaryMirror } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
983
983
|
await setVscodeBinaryMirror(cwd);
|
|
984
984
|
logger.success("mirror finished!");
|
|
985
985
|
});
|
|
@@ -989,22 +989,22 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
989
989
|
function registerVerifyCommands(program, cwd) {
|
|
990
990
|
const verifyCommand = program.command("verify").alias("v").description("本地校验工具集");
|
|
991
991
|
verifyCommand.command("pre-push").description("按推送变更范围执行 build/test/tsd 校验").alias("push").action(async () => {
|
|
992
|
-
const { verifyPrePush } = await import("./commands-
|
|
992
|
+
const { verifyPrePush } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
993
993
|
await verifyPrePush({ cwd });
|
|
994
994
|
});
|
|
995
995
|
verifyCommand.command("pre-commit").description("执行 lint-staged 校验").alias("commit").action(async () => {
|
|
996
|
-
const { verifyPreCommit } = await import("./commands-
|
|
996
|
+
const { verifyPreCommit } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
997
997
|
await verifyPreCommit({ cwd });
|
|
998
998
|
});
|
|
999
999
|
verifyCommand.command("commit-msg").description("执行 commitlint 校验").alias("msg").argument("<edit-file>").action(async (editFile) => {
|
|
1000
|
-
const { verifyCommitMsg } = await import("./commands-
|
|
1000
|
+
const { verifyCommitMsg } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
1001
1001
|
await verifyCommitMsg({
|
|
1002
1002
|
cwd,
|
|
1003
1003
|
editFile
|
|
1004
1004
|
});
|
|
1005
1005
|
});
|
|
1006
1006
|
verifyCommand.command("staged-typecheck").description("按暂存文件所在 workspace 执行 typecheck").alias("tc").argument("[files...]").action(async (files = []) => {
|
|
1007
|
-
const { verifyStagedTypecheck } = await import("./commands-
|
|
1007
|
+
const { verifyStagedTypecheck } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
1008
1008
|
verifyStagedTypecheck(files, { cwd });
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
@@ -1083,12 +1083,12 @@ async function emitWorkspaceList(result, opts) {
|
|
|
1083
1083
|
function registerWorkspaceCommands(program, cwd) {
|
|
1084
1084
|
const workspaceCommand = program.command("workspace").alias("ws").description("工作区命令");
|
|
1085
1085
|
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) => {
|
|
1086
|
-
const { upgradeMonorepo } = await import("./commands-
|
|
1086
|
+
const { upgradeMonorepo } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
1087
1087
|
await upgradeMonorepo(normalizeCliOpts(cwd, opts));
|
|
1088
1088
|
logger.success("workspace upgrade finished!");
|
|
1089
1089
|
});
|
|
1090
1090
|
workspaceCommand.command("init").description("初始化工作区元信息(README、package.json、changeset、issue template)").alias("i").action(async () => {
|
|
1091
|
-
const { initMetadata } = await import("./commands-
|
|
1091
|
+
const { initMetadata } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
1092
1092
|
await initMetadata(cwd);
|
|
1093
1093
|
logger.success("workspace init finished!");
|
|
1094
1094
|
});
|
|
@@ -1101,7 +1101,7 @@ function registerWorkspaceCommands(program, cwd) {
|
|
|
1101
1101
|
}), opts);
|
|
1102
1102
|
});
|
|
1103
1103
|
workspaceCommand.command("clean").description("清除选中的包").alias("rm").option("-y, --yes", "跳过交互直接清理(等价 autoConfirm)").option("--include-private", "包含 private 包").option("--pinned-version <version>", "覆盖写入的 @icebreakers/monorepo 版本").action(async (opts) => {
|
|
1104
|
-
const { cleanProjects } = await import("./commands-
|
|
1104
|
+
const { cleanProjects } = await import("./commands-BDc4kaVr.mjs").then((n) => n.t);
|
|
1105
1105
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
1106
1106
|
logger.success("workspace clean finished!");
|
|
1107
1107
|
});
|
|
@@ -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, l as name$1, 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, l as name$1, n as assetsDir, o as templatesDir, s as dependencies, t as initToolingTargets, u as version$1 } from "./types-l72Q1OXu.mjs";
|
|
4
4
|
import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getMonorepoConfigCandidates, o as loadMonorepoConfigDetails, s as resolveCommandConfig } from "./config-itCaAICn.mjs";
|
|
5
5
|
import { f as defineTsconfigConfig } from "./tooling-cxnXmQex.mjs";
|
|
6
6
|
import gitUrlParse from "git-url-parse";
|
|
@@ -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-BDc4kaVr.mjs";
|
|
2
|
+
import { d as logger, g as fs } from "./types-l72Q1OXu.mjs";
|
|
3
3
|
import { s as resolveCommandConfig } from "./config-itCaAICn.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-BDc4kaVr.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-l72Q1OXu.mjs";
|
|
4
4
|
import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getMonorepoConfigCandidates, o as loadMonorepoConfigDetails, r as defineMonorepoConfig, s as resolveCommandConfig, t as configExtensions } from "./config-itCaAICn.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-cxnXmQex.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, getMonorepoConfigCandidates, 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,7 +142,7 @@ 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.5";
|
|
146
146
|
var dependencies = {
|
|
147
147
|
"@icebreakers/commitlint-config": "^2.0.0",
|
|
148
148
|
"@icebreakers/eslint-config": "^4.0.10",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.5",
|
|
5
5
|
"description": "Core engine and compatibility package behind the repoctl monorepo CLI",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://repo.icebreaker.top",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/sonofmagic/monorepo-template.git",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"simple-git": "^3.36.0",
|
|
83
83
|
"vitest": "~4.1.5",
|
|
84
84
|
"yaml": "^2.8.4",
|
|
85
|
-
"@icebreakers/monorepo-templates": "1.0.
|
|
85
|
+
"@icebreakers/monorepo-templates": "1.0.4"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@types/klaw": "^3.0.7",
|