@icebreakers/monorepo 5.0.1 → 5.0.3
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 -0
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +29 -29
- package/dist/{commands-CTjYjbwQ.mjs → commands-KNarzvFs.mjs} +37 -28
- package/dist/{create-flow-NNqVahrk.mjs → create-flow-D2KdMg-m.mjs} +2 -2
- package/dist/{index-DxbJeRcU.d.mts → index-Ltm2Ry5E.d.mts} +2 -114
- package/dist/index.d.mts +113 -2
- package/dist/index.mjs +3 -3
- package/dist/{tooling-auYlGr3v.mjs → tooling-Bn3XOfO0.mjs} +6 -0
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +1 -1
- package/dist/{types-BXoDcQ_O.mjs → types-DYEKpMcN.mjs} +7 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ export default defineMonorepoConfig({
|
|
|
128
128
|
- `pre-commit` 只检查 staged 文件
|
|
129
129
|
- 样式文件会执行 `stylelint --fix --allow-empty-input`
|
|
130
130
|
- `js`、`jsx`、`mjs`、`ts`、`tsx`、`mts`、`cts`、`vue` 文件会执行 `eslint --fix`
|
|
131
|
+
- `**/package.json` 改动会按所在 workspace 继续执行 `typecheck`
|
|
131
132
|
- `ts` / `tsx` / `mts` / `cts` / `vue` staged 文件会按最近的 workspace 执行 `typecheck`
|
|
132
133
|
- Vue workspace 的 `typecheck` 通常是 `vue-tsc -b`
|
|
133
134
|
- 纯 TypeScript workspace 的 `typecheck` 通常是 `tsc -p tsconfig.json`
|
package/dist/cli.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
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-DYEKpMcN.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-D2KdMg-m.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-D2KdMg-m.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.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-KNarzvFs.mjs").then((n) => n.t);
|
|
1088
1088
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
1089
1089
|
logger.success("workspace clean finished!");
|
|
1090
1090
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
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-DYEKpMcN.mjs";
|
|
4
4
|
import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, s as resolveCommandConfig } from "./config-p842Knhq.mjs";
|
|
5
|
-
import { f as defineTsconfigConfig } from "./tooling-
|
|
5
|
+
import { f as defineTsconfigConfig } from "./tooling-Bn3XOfO0.mjs";
|
|
6
6
|
import gitUrlParse from "git-url-parse";
|
|
7
7
|
import { simpleGit } from "simple-git";
|
|
8
8
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
@@ -161,13 +161,14 @@ async function generateAgenticTemplates(tasks, defaults = {}) {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region src/commands/verify/index.ts
|
|
163
163
|
const zeroSha = "0".repeat(40);
|
|
164
|
-
const typecheckExtensions = new Set([
|
|
164
|
+
const typecheckExtensions = /* @__PURE__ */ new Set([
|
|
165
165
|
".ts",
|
|
166
166
|
".tsx",
|
|
167
167
|
".mts",
|
|
168
168
|
".cts",
|
|
169
169
|
".vue"
|
|
170
170
|
]);
|
|
171
|
+
const typecheckBasenames = /* @__PURE__ */ new Set(["package.json"]);
|
|
171
172
|
const whitespacePattern = /\s+/;
|
|
172
173
|
const gitDirName = ".git";
|
|
173
174
|
const defaultWorkspaceOrder = [
|
|
@@ -325,7 +326,7 @@ async function verifyPrePush(options = {}) {
|
|
|
325
326
|
const hookStdin = options.stdinText ?? await readHookStdin();
|
|
326
327
|
const hookLines = hookStdin.length > 0 ? hookStdin.split("\n") : [];
|
|
327
328
|
const tasksByWorkspace = /* @__PURE__ */ new Map();
|
|
328
|
-
const rootTasks = new Set(["lint", "typecheck"]);
|
|
329
|
+
const rootTasks = /* @__PURE__ */ new Set(["lint", "typecheck"]);
|
|
329
330
|
for (const line of hookLines) {
|
|
330
331
|
const [, localSha, , remoteSha] = line.trim().split(whitespacePattern);
|
|
331
332
|
if (!localSha || localSha === zeroSha) continue;
|
|
@@ -382,7 +383,10 @@ async function verifyPrePush(options = {}) {
|
|
|
382
383
|
function verifyStagedTypecheck(stagedFiles, options = {}) {
|
|
383
384
|
const cwd = options.cwd ?? process.cwd();
|
|
384
385
|
const spawn = options.spawn ?? spawnSync;
|
|
385
|
-
const workspaceDirs = [...new Set(stagedFiles.filter((file) =>
|
|
386
|
+
const workspaceDirs = [...new Set(stagedFiles.filter((file) => {
|
|
387
|
+
const basename = path$1.basename(file);
|
|
388
|
+
return typecheckExtensions.has(path$1.extname(file)) || typecheckBasenames.has(basename);
|
|
389
|
+
}).map((file) => resolveTypecheckWorkspaceDir(file, cwd)))];
|
|
386
390
|
if (workspaceDirs.length === 0) return;
|
|
387
391
|
for (const workspaceDir of workspaceDirs) runPnpmCommand(cwd, `[lint-staged:typecheck] ${path$1.relative(cwd, workspaceDir) || "."}`, [
|
|
388
392
|
"--dir",
|
|
@@ -477,7 +481,7 @@ function resolveRecommendedCheckPlan(options) {
|
|
|
477
481
|
};
|
|
478
482
|
}
|
|
479
483
|
function getKnownRepoCheckCommands() {
|
|
480
|
-
return new Set([
|
|
484
|
+
return /* @__PURE__ */ new Set([
|
|
481
485
|
"repo verify pre-commit",
|
|
482
486
|
"repo verify pre-push",
|
|
483
487
|
"repo verify staged-typecheck",
|
|
@@ -780,7 +784,7 @@ async function cleanProjects(cwd, overrides) {
|
|
|
780
784
|
const qoderDir = path.resolve(workspaceDir, ".qoder");
|
|
781
785
|
const docsPlansDir = path.resolve(workspaceDir, "docs/plans");
|
|
782
786
|
const skillTargets = Object.values(getSkillTargetPaths());
|
|
783
|
-
const candidates = [
|
|
787
|
+
const candidates = [.../* @__PURE__ */ new Set([
|
|
784
788
|
...cleanDirs.filter(Boolean),
|
|
785
789
|
readmeZh,
|
|
786
790
|
qoderDir,
|
|
@@ -1083,7 +1087,7 @@ async function resolveCreateNewProjectPlan(options) {
|
|
|
1083
1087
|
}
|
|
1084
1088
|
//#endregion
|
|
1085
1089
|
//#region src/commands/create/index.ts
|
|
1086
|
-
const rootReferenceExtensions = new Set([
|
|
1090
|
+
const rootReferenceExtensions = /* @__PURE__ */ new Set([
|
|
1087
1091
|
".cjs",
|
|
1088
1092
|
".cts",
|
|
1089
1093
|
".js",
|
|
@@ -1718,31 +1722,31 @@ async function setReadme_default(ctx, options = {}) {
|
|
|
1718
1722
|
//#endregion
|
|
1719
1723
|
//#region ../../package.json
|
|
1720
1724
|
var devDependencies = {
|
|
1721
|
-
"@changesets/cli": "^
|
|
1722
|
-
"@commitlint/cli": "^21.2.
|
|
1725
|
+
"@changesets/cli": "^3.0.0",
|
|
1726
|
+
"@commitlint/cli": "^21.2.1",
|
|
1723
1727
|
"@icebreakers/changelog-github": "^2.0.0",
|
|
1724
1728
|
"@icebreakers/monorepo": "workspace:*",
|
|
1725
|
-
"@types/node": "^26.
|
|
1726
|
-
"@types/semver": "^7.
|
|
1729
|
+
"@types/node": "^26.2.0",
|
|
1730
|
+
"@types/semver": "^7.8.0",
|
|
1727
1731
|
"@vitest/coverage-v8": "~4.1.10",
|
|
1728
1732
|
"ci-info": "^4.4.0",
|
|
1729
1733
|
"cross-env": "^10.1.0",
|
|
1730
1734
|
"defu": "^6.1.7",
|
|
1731
|
-
"es-toolkit": "^1.
|
|
1732
|
-
"eslint": "^10.
|
|
1735
|
+
"es-toolkit": "^1.50.0",
|
|
1736
|
+
"eslint": "^10.8.1",
|
|
1733
1737
|
"husky": "^9.1.7",
|
|
1734
|
-
"lint-staged": "^17.0
|
|
1738
|
+
"lint-staged": "^17.3.0",
|
|
1735
1739
|
"only-allow": "^1.2.2",
|
|
1736
1740
|
"pathe": "^2.0.3",
|
|
1737
1741
|
"pkg-types": "^2.3.1",
|
|
1738
1742
|
"repoctl": "workspace:*",
|
|
1739
|
-
"stylelint": "^17.14.
|
|
1740
|
-
"tailwindcss": "^4.3.
|
|
1743
|
+
"stylelint": "^17.14.1",
|
|
1744
|
+
"tailwindcss": "^4.3.3",
|
|
1741
1745
|
"tsd": "^0.33.0",
|
|
1742
|
-
"tsdown": "0.22.
|
|
1746
|
+
"tsdown": "0.22.14",
|
|
1743
1747
|
"tslib": "^2.8.1",
|
|
1744
|
-
"tsx": "^4.23.
|
|
1745
|
-
"turbo": "^2.10.
|
|
1748
|
+
"tsx": "^4.23.12",
|
|
1749
|
+
"turbo": "^2.10.9",
|
|
1746
1750
|
"type-fest": "^5.8.0",
|
|
1747
1751
|
"typescript": "^6.0.3",
|
|
1748
1752
|
"vitest": "~4.1.10",
|
|
@@ -1756,7 +1760,7 @@ const packageDependencies = {
|
|
|
1756
1760
|
type: "module",
|
|
1757
1761
|
version: "0.0.0",
|
|
1758
1762
|
"private": true,
|
|
1759
|
-
packageManager: "pnpm@11.
|
|
1763
|
+
packageManager: "pnpm@11.21.0",
|
|
1760
1764
|
author: "ice breaker <hi@sonofmagic.top>",
|
|
1761
1765
|
repository: {
|
|
1762
1766
|
"type": "git",
|
|
@@ -1774,6 +1778,8 @@ const packageDependencies = {
|
|
|
1774
1778
|
"tsd": "turbo run tsd",
|
|
1775
1779
|
"audit": "pnpm audit --audit-level=moderate",
|
|
1776
1780
|
"audit:fix": "pnpm audit --fix",
|
|
1781
|
+
"cf-typegen": "pnpm --filter @icebreakers/client --filter @icebreakers/server run cf-typegen",
|
|
1782
|
+
"cf-typegen:check": "pnpm --filter @icebreakers/client --filter @icebreakers/server run cf-typegen:check",
|
|
1777
1783
|
"typecheck": "turbo run typecheck",
|
|
1778
1784
|
"format": "eslint . --fix",
|
|
1779
1785
|
"validate": "pnpm run build && pnpm run lint && pnpm run typecheck && pnpm run tsd && pnpm run test",
|
|
@@ -2126,7 +2132,7 @@ async function setVscodeBinaryMirror(cwd) {
|
|
|
2126
2132
|
}
|
|
2127
2133
|
//#endregion
|
|
2128
2134
|
//#region src/commands/release.ts
|
|
2129
|
-
const prereleaseBranches = new Set([
|
|
2135
|
+
const prereleaseBranches = /* @__PURE__ */ new Set([
|
|
2130
2136
|
"alpha",
|
|
2131
2137
|
"beta",
|
|
2132
2138
|
"rc",
|
|
@@ -2171,6 +2177,13 @@ async function readPreState(cwd) {
|
|
|
2171
2177
|
return null;
|
|
2172
2178
|
}
|
|
2173
2179
|
}
|
|
2180
|
+
async function hasPendingChangesets(cwd) {
|
|
2181
|
+
try {
|
|
2182
|
+
return (await readdir(path.join(cwd, ".changeset"), { withFileTypes: true })).some((entry) => entry.isFile() && entry.name.endsWith(".md"));
|
|
2183
|
+
} catch {
|
|
2184
|
+
return false;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2174
2187
|
function resolveBranch(options) {
|
|
2175
2188
|
return options.branch?.trim() || process.env["GITHUB_REF_NAME"]?.trim() || capture("git", [
|
|
2176
2189
|
"rev-parse",
|
|
@@ -2185,11 +2198,6 @@ async function releaseStable(options) {
|
|
|
2185
2198
|
run("pnpm", ["run", "build"], options);
|
|
2186
2199
|
run("pnpm", ["run", "lint"], options);
|
|
2187
2200
|
run("pnpm", ["run", "test"], options);
|
|
2188
|
-
run("pnpm", [
|
|
2189
|
-
"exec",
|
|
2190
|
-
"changeset",
|
|
2191
|
-
"version"
|
|
2192
|
-
], options);
|
|
2193
2201
|
run("pnpm", [
|
|
2194
2202
|
"exec",
|
|
2195
2203
|
"changeset",
|
|
@@ -2204,6 +2212,7 @@ async function releasePrerelease(options) {
|
|
|
2204
2212
|
run("pnpm", ["run", "build"], options);
|
|
2205
2213
|
run("pnpm", ["run", "lint"], options);
|
|
2206
2214
|
run("pnpm", ["run", "test"], options);
|
|
2215
|
+
if (!await hasPendingChangesets(options.cwd)) return;
|
|
2207
2216
|
run("pnpm", [
|
|
2208
2217
|
"exec",
|
|
2209
2218
|
"changeset",
|
|
@@ -2764,7 +2773,7 @@ async function upgradeMonorepo(opts) {
|
|
|
2764
2773
|
const baseTargets = getAssetTargets(useCoreAssets);
|
|
2765
2774
|
const configTargets = upgradeConfig?.targets ?? [];
|
|
2766
2775
|
const mergeTargets = upgradeConfig?.mergeTargets;
|
|
2767
|
-
let targets = configTargets.length ? mergeTargets === false ? [...configTargets] : [
|
|
2776
|
+
let targets = configTargets.length ? mergeTargets === false ? [...configTargets] : [.../* @__PURE__ */ new Set([...baseTargets, ...configTargets])] : baseTargets;
|
|
2768
2777
|
if (merged.interactive) if (!process.stdin.isTTY || !process.stdout.isTTY) logger.info("skip interactive target selection in non-interactive mode");
|
|
2769
2778
|
else targets = await checkbox({
|
|
2770
2779
|
message: "选择你需要的文件",
|
|
@@ -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-KNarzvFs.mjs";
|
|
2
|
+
import { d as logger, g as fs } from "./types-DYEKpMcN.mjs";
|
|
3
3
|
import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
@@ -5,7 +5,6 @@ import { IcebreakerEslintConfig, UserConfigItem, UserDefinedOptions } from "@ice
|
|
|
5
5
|
import { IcebreakerStylelintConfig, StylelintConfig } from "@icebreakers/stylelint-config";
|
|
6
6
|
import { ViteUserConfig } from "vitest/config";
|
|
7
7
|
import { Configuration } from "lint-staged";
|
|
8
|
-
|
|
9
8
|
//#region src/types/cli.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* CLI 公用参数,保证各命令对外暴露一致的行为。
|
|
@@ -627,118 +626,6 @@ interface MonorepoConfig {
|
|
|
627
626
|
tooling?: ToolingConfig;
|
|
628
627
|
}
|
|
629
628
|
//#endregion
|
|
630
|
-
//#region src/types/package-json.d.ts
|
|
631
|
-
interface PackageJsonPerson {
|
|
632
|
-
name?: string;
|
|
633
|
-
email?: string;
|
|
634
|
-
url?: string;
|
|
635
|
-
}
|
|
636
|
-
interface PackageJsonRepository {
|
|
637
|
-
type?: string;
|
|
638
|
-
url?: string;
|
|
639
|
-
directory?: string;
|
|
640
|
-
}
|
|
641
|
-
interface PackageJsonBugs {
|
|
642
|
-
url?: string;
|
|
643
|
-
email?: string;
|
|
644
|
-
}
|
|
645
|
-
type PackageJsonExports = unknown;
|
|
646
|
-
interface PackageJson extends Record<string, unknown> {
|
|
647
|
-
name?: string;
|
|
648
|
-
version?: string;
|
|
649
|
-
private?: boolean;
|
|
650
|
-
type?: string;
|
|
651
|
-
description?: string;
|
|
652
|
-
author?: string | PackageJsonPerson;
|
|
653
|
-
repository?: string | PackageJsonRepository;
|
|
654
|
-
bugs?: string | PackageJsonBugs;
|
|
655
|
-
homepage?: string;
|
|
656
|
-
license?: string;
|
|
657
|
-
packageManager?: string;
|
|
658
|
-
scripts?: Record<string, string | undefined>;
|
|
659
|
-
dependencies?: Record<string, string | undefined>;
|
|
660
|
-
devDependencies?: Record<string, string | undefined>;
|
|
661
|
-
peerDependencies?: Record<string, string | undefined>;
|
|
662
|
-
optionalDependencies?: Record<string, string | undefined>;
|
|
663
|
-
engines?: Record<string, string | undefined>;
|
|
664
|
-
publishConfig?: Record<string, unknown>;
|
|
665
|
-
bin?: string | Record<string, string | undefined>;
|
|
666
|
-
exports?: PackageJsonExports;
|
|
667
|
-
}
|
|
668
|
-
//#endregion
|
|
669
|
-
//#region src/types/workspace.d.ts
|
|
670
|
-
/**
|
|
671
|
-
* 工作区工具可接收的筛选选项。
|
|
672
|
-
*/
|
|
673
|
-
interface GetWorkspacePackagesOptions {
|
|
674
|
-
/**
|
|
675
|
-
* 是否在结果中排除 workspace 根包。
|
|
676
|
-
* @default true
|
|
677
|
-
*/
|
|
678
|
-
ignoreRootPackage?: boolean;
|
|
679
|
-
/**
|
|
680
|
-
* 是否过滤掉标记为 `private` 的包。
|
|
681
|
-
* @default true
|
|
682
|
-
*/
|
|
683
|
-
ignorePrivatePackage?: boolean;
|
|
684
|
-
/**
|
|
685
|
-
* 自定义 glob,覆盖 `pnpm-workspace.yaml` 的 `packages` 配置。
|
|
686
|
-
* @default workspace manifest `packages`
|
|
687
|
-
*/
|
|
688
|
-
patterns?: string[];
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
* 兼容 pnpm workspace manifest 的轻量结构。
|
|
692
|
-
*/
|
|
693
|
-
interface WorkspacePackageManifest {
|
|
694
|
-
name?: string;
|
|
695
|
-
private?: boolean;
|
|
696
|
-
description?: string;
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* 轻量的 workspace package 结构,避免导出类型泄漏到 pnpm 内部实现细节。
|
|
700
|
-
*/
|
|
701
|
-
interface WorkspacePackage {
|
|
702
|
-
rootDir: string;
|
|
703
|
-
rootDirRealPath: string;
|
|
704
|
-
modulesDir?: string;
|
|
705
|
-
manifest: WorkspacePackageManifest;
|
|
706
|
-
writeProjectManifest?: unknown;
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* 附加 package.json 绝对路径后的 workspace package。
|
|
710
|
-
*/
|
|
711
|
-
interface WorkspacePackageWithJsonPath extends WorkspacePackage {
|
|
712
|
-
pkgJsonPath: string;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* 适合 CLI 与 JSON 输出消费的 workspace package 摘要。
|
|
716
|
-
*/
|
|
717
|
-
interface WorkspacePackageSummary {
|
|
718
|
-
name?: string;
|
|
719
|
-
description?: string;
|
|
720
|
-
private: boolean;
|
|
721
|
-
rootDir: string;
|
|
722
|
-
relativeDir: string;
|
|
723
|
-
pkgJsonPath: string;
|
|
724
|
-
}
|
|
725
|
-
/**
|
|
726
|
-
* workspace package 摘要集合。
|
|
727
|
-
*/
|
|
728
|
-
interface WorkspacePackageSummaryData {
|
|
729
|
-
cwd: string;
|
|
730
|
-
workspaceDir: string;
|
|
731
|
-
packages: WorkspacePackageSummary[];
|
|
732
|
-
}
|
|
733
|
-
/**
|
|
734
|
-
* 工作区基础信息与包集合。
|
|
735
|
-
*/
|
|
736
|
-
interface WorkspaceData {
|
|
737
|
-
cwd: string;
|
|
738
|
-
workspaceDir: string;
|
|
739
|
-
packages: WorkspacePackageWithJsonPath[];
|
|
740
|
-
}
|
|
741
|
-
//#endregion
|
|
742
629
|
//#region src/tooling/index.d.ts
|
|
743
630
|
/**
|
|
744
631
|
* `commitlint.config.*` 最终导出的配置类型。
|
|
@@ -968,6 +855,7 @@ declare function defineTsconfigConfig(input?: DefineConfigOptions<TsconfigToolin
|
|
|
968
855
|
* - `*.{js,jsx,mjs,ts,tsx,mts,cts}` 运行 `eslint --fix`
|
|
969
856
|
* - `*.vue` 同时运行 `eslint --fix` 与 `stylelint --fix --allow-empty-input`
|
|
970
857
|
* - `*.{ts,tsx,mts,cts,vue}` 调用 `pnpm exec repo verify staged-typecheck`
|
|
858
|
+
* - `package.json` files in any workspace also trigger `pnpm exec repo verify staged-typecheck`
|
|
971
859
|
* - 样式文件运行 `stylelint --fix --allow-empty-input`
|
|
972
860
|
*
|
|
973
861
|
* @param options 可配置 `repoCommand`,默认值为 `pnpm exec repo`
|
|
@@ -1078,4 +966,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
|
|
|
1078
966
|
*/
|
|
1079
967
|
declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
|
|
1080
968
|
//#endregion
|
|
1081
|
-
export {
|
|
969
|
+
export { initTooling as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, StylelintToolingConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, UpgradeCommandConfig as J, ToolingConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, initMetadata as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, VitestToolingConfig as X, VitestProjectToolingConfig as Y, init as Z, createMonorepoEslintConfig as _, CliOpts as _t, MonorepoCommitlintConfig as a, getCreateChoices as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, templateMap as ct, MonorepoVitestConfigOptions as d, GenerateAgenticTemplateOptions as dt, normalizeInitToolingTargets as et, MonorepoVitestConfigOverrides as f, createTimestampFolderName as ft, createMonorepoCommitlintConfig as g, loadAgenticTasks as gt, MonorepoVitestProjectConfigResult as h, generateAgenticTemplates as ht, DefineVitestProjectConfigOptions as i, CreateNewProjectPlan as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, AgenticTemplateFormat as lt, MonorepoVitestProjectConfigOptions as m, generateAgenticTemplate as mt, DefineEslintConfigOptions as n, createNewProject as nt, MonorepoEslintConfig as o, getTemplateMap as ot, MonorepoVitestConfigResult as p, defaultAgenticBaseDir as pt, TsconfigToolingConfig as q, DefineVitestConfigOptions as r, CreateNewProjectOptions as rt, MonorepoLintStagedConfig as s, resolveCreateNewProjectPlan as st, DefineConfigOptions as t, initToolingTargets as tt, MonorepoTsconfig as u, AgenticTemplateTask as ut, createMonorepoLintStagedConfig as v, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, EslintToolingConfig as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,122 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as initTooling, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as StylelintToolingConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as UpgradeCommandConfig, K as ToolingConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as initMetadata, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as VitestToolingConfig, Y as VitestProjectToolingConfig, Z as init, _ as createMonorepoEslintConfig, _t as CliOpts, a as MonorepoCommitlintConfig, at as getCreateChoices, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as templateMap, d as MonorepoVitestConfigOptions, dt as GenerateAgenticTemplateOptions, et as normalizeInitToolingTargets, f as MonorepoVitestConfigOverrides, ft as createTimestampFolderName, g as createMonorepoCommitlintConfig, gt as loadAgenticTasks, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplates, i as DefineVitestProjectConfigOptions, it as CreateNewProjectPlan, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as AgenticTemplateFormat, m as MonorepoVitestProjectConfigOptions, mt as generateAgenticTemplate, n as DefineEslintConfigOptions, nt as createNewProject, o as MonorepoEslintConfig, ot as getTemplateMap, p as MonorepoVitestConfigResult, pt as defaultAgenticBaseDir, q as TsconfigToolingConfig, r as DefineVitestConfigOptions, rt as CreateNewProjectOptions, s as MonorepoLintStagedConfig, st as resolveCreateNewProjectPlan, t as DefineConfigOptions, tt as initToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateTask, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-Ltm2Ry5E.mjs";
|
|
2
2
|
import gitUrlParse from "git-url-parse";
|
|
3
3
|
import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
|
|
4
4
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
5
5
|
import { isGitignoreFile, toPublishGitignorePath, toWorkspaceGitignorePath } from "@icebreakers/monorepo-templates";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
7
|
import crypto from "node:crypto";
|
|
8
|
-
|
|
8
|
+
//#region src/types/package-json.d.ts
|
|
9
|
+
interface PackageJsonPerson {
|
|
10
|
+
name?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
}
|
|
14
|
+
interface PackageJsonRepository {
|
|
15
|
+
type?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
directory?: string;
|
|
18
|
+
}
|
|
19
|
+
interface PackageJsonBugs {
|
|
20
|
+
url?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
}
|
|
23
|
+
type PackageJsonExports = unknown;
|
|
24
|
+
interface PackageJson extends Record<string, unknown> {
|
|
25
|
+
name?: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
private?: boolean;
|
|
28
|
+
type?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
author?: string | PackageJsonPerson;
|
|
31
|
+
repository?: string | PackageJsonRepository;
|
|
32
|
+
bugs?: string | PackageJsonBugs;
|
|
33
|
+
homepage?: string;
|
|
34
|
+
license?: string;
|
|
35
|
+
packageManager?: string;
|
|
36
|
+
scripts?: Record<string, string | undefined>;
|
|
37
|
+
dependencies?: Record<string, string | undefined>;
|
|
38
|
+
devDependencies?: Record<string, string | undefined>;
|
|
39
|
+
peerDependencies?: Record<string, string | undefined>;
|
|
40
|
+
optionalDependencies?: Record<string, string | undefined>;
|
|
41
|
+
engines?: Record<string, string | undefined>;
|
|
42
|
+
publishConfig?: Record<string, unknown>;
|
|
43
|
+
bin?: string | Record<string, string | undefined>;
|
|
44
|
+
exports?: PackageJsonExports;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/types/workspace.d.ts
|
|
48
|
+
/**
|
|
49
|
+
* 工作区工具可接收的筛选选项。
|
|
50
|
+
*/
|
|
51
|
+
interface GetWorkspacePackagesOptions {
|
|
52
|
+
/**
|
|
53
|
+
* 是否在结果中排除 workspace 根包。
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
ignoreRootPackage?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 是否过滤掉标记为 `private` 的包。
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
ignorePrivatePackage?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 自定义 glob,覆盖 `pnpm-workspace.yaml` 的 `packages` 配置。
|
|
64
|
+
* @default workspace manifest `packages`
|
|
65
|
+
*/
|
|
66
|
+
patterns?: string[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* 兼容 pnpm workspace manifest 的轻量结构。
|
|
70
|
+
*/
|
|
71
|
+
interface WorkspacePackageManifest {
|
|
72
|
+
name?: string;
|
|
73
|
+
private?: boolean;
|
|
74
|
+
description?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 轻量的 workspace package 结构,避免导出类型泄漏到 pnpm 内部实现细节。
|
|
78
|
+
*/
|
|
79
|
+
interface WorkspacePackage {
|
|
80
|
+
rootDir: string;
|
|
81
|
+
rootDirRealPath: string;
|
|
82
|
+
modulesDir?: string;
|
|
83
|
+
manifest: WorkspacePackageManifest;
|
|
84
|
+
writeProjectManifest?: unknown;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 附加 package.json 绝对路径后的 workspace package。
|
|
88
|
+
*/
|
|
89
|
+
interface WorkspacePackageWithJsonPath extends WorkspacePackage {
|
|
90
|
+
pkgJsonPath: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 适合 CLI 与 JSON 输出消费的 workspace package 摘要。
|
|
94
|
+
*/
|
|
95
|
+
interface WorkspacePackageSummary {
|
|
96
|
+
name?: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
private: boolean;
|
|
99
|
+
rootDir: string;
|
|
100
|
+
relativeDir: string;
|
|
101
|
+
pkgJsonPath: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* workspace package 摘要集合。
|
|
105
|
+
*/
|
|
106
|
+
interface WorkspacePackageSummaryData {
|
|
107
|
+
cwd: string;
|
|
108
|
+
workspaceDir: string;
|
|
109
|
+
packages: WorkspacePackageSummary[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 工作区基础信息与包集合。
|
|
113
|
+
*/
|
|
114
|
+
interface WorkspaceData {
|
|
115
|
+
cwd: string;
|
|
116
|
+
workspaceDir: string;
|
|
117
|
+
packages: WorkspacePackageWithJsonPath[];
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
9
120
|
//#region src/commands/check.d.ts
|
|
10
121
|
interface RecommendedCheckOptions {
|
|
11
122
|
cwd: string;
|
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-KNarzvFs.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-DYEKpMcN.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
|
-
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-
|
|
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
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 };
|
|
@@ -264,6 +264,7 @@ async function defineTsconfigConfig(input = {}) {
|
|
|
264
264
|
* - `*.{js,jsx,mjs,ts,tsx,mts,cts}` 运行 `eslint --fix`
|
|
265
265
|
* - `*.vue` 同时运行 `eslint --fix` 与 `stylelint --fix --allow-empty-input`
|
|
266
266
|
* - `*.{ts,tsx,mts,cts,vue}` 调用 `pnpm exec repo verify staged-typecheck`
|
|
267
|
+
* - `package.json` files in any workspace also trigger `pnpm exec repo verify staged-typecheck`
|
|
267
268
|
* - 样式文件运行 `stylelint --fix --allow-empty-input`
|
|
268
269
|
*
|
|
269
270
|
* @param options 可配置 `repoCommand`,默认值为 `pnpm exec repo`
|
|
@@ -289,6 +290,11 @@ function createMonorepoLintStagedConfig(options = {}) {
|
|
|
289
290
|
if (uniqueFiles.length === 0) return [];
|
|
290
291
|
return `${repoCommand} verify staged-typecheck ${uniqueFiles.map(escapeForShell).join(" ")}`;
|
|
291
292
|
},
|
|
293
|
+
"**/package.json": (files) => {
|
|
294
|
+
const uniqueFiles = [...new Set(files)];
|
|
295
|
+
if (uniqueFiles.length === 0) return [];
|
|
296
|
+
return `${repoCommand} verify staged-typecheck ${uniqueFiles.map(escapeForShell).join(" ")}`;
|
|
297
|
+
},
|
|
292
298
|
"*.{json,md,mdx,html,yml,yaml}": ["eslint --fix"],
|
|
293
299
|
"*.{css,scss,sass,less}": ["stylelint --fix --allow-empty-input"]
|
|
294
300
|
};
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-
|
|
1
|
+
import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-Ltm2Ry5E.mjs";
|
|
2
2
|
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
@@ -142,16 +142,16 @@ const logger = createConsola();
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name = "@icebreakers/monorepo";
|
|
145
|
-
var version = "5.0.
|
|
145
|
+
var version = "5.0.3";
|
|
146
146
|
var dependencies = {
|
|
147
147
|
"@icebreakers/commitlint-config": "^4.0.2",
|
|
148
|
-
"@icebreakers/eslint-config": "^7.0.
|
|
148
|
+
"@icebreakers/eslint-config": "^7.0.2",
|
|
149
149
|
"@icebreakers/monorepo-templates": "workspace:*",
|
|
150
|
-
"@icebreakers/stylelint-config": "^5.0.
|
|
150
|
+
"@icebreakers/stylelint-config": "^5.0.3",
|
|
151
151
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
152
152
|
"@pnpm/logger": "^1100.0.0",
|
|
153
|
-
"@pnpm/types": "^1101.
|
|
154
|
-
"@pnpm/worker": "^1100.2.
|
|
153
|
+
"@pnpm/types": "^1101.9.0",
|
|
154
|
+
"@pnpm/worker": "^1100.2.10",
|
|
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,8 +160,8 @@ 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.3.
|
|
163
|
+
"lint-staged": "^17.3.0",
|
|
164
|
+
"p-queue": "^9.3.3",
|
|
165
165
|
"pathe": "^2.0.3",
|
|
166
166
|
"picocolors": "^1.1.1",
|
|
167
167
|
"semver": "^7.8.5",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"description": "Core engine behind the repoctl monorepo CLI",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"node": ">=22.12.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@commitlint/cli": "^21.2.
|
|
58
|
+
"@commitlint/cli": "^21.2.1",
|
|
59
59
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
60
|
-
"stylelint": "^17.14.
|
|
60
|
+
"stylelint": "^17.14.1",
|
|
61
61
|
"typescript": "^5.0.0 || ^6.0.0",
|
|
62
62
|
"vitest": "^4.1.10"
|
|
63
63
|
},
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@icebreakers/commitlint-config": "^4.0.2",
|
|
83
|
-
"@icebreakers/eslint-config": "^7.0.
|
|
84
|
-
"@icebreakers/stylelint-config": "^5.0.
|
|
83
|
+
"@icebreakers/eslint-config": "^7.0.2",
|
|
84
|
+
"@icebreakers/stylelint-config": "^5.0.3",
|
|
85
85
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
86
86
|
"@pnpm/logger": "^1100.0.0",
|
|
87
|
-
"@pnpm/types": "^1101.
|
|
88
|
-
"@pnpm/worker": "^1100.2.
|
|
87
|
+
"@pnpm/types": "^1101.9.0",
|
|
88
|
+
"@pnpm/worker": "^1100.2.10",
|
|
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.3.
|
|
97
|
+
"lint-staged": "^17.3.0",
|
|
98
|
+
"p-queue": "^9.3.3",
|
|
99
99
|
"pathe": "^2.0.3",
|
|
100
100
|
"picocolors": "^1.1.1",
|
|
101
101
|
"semver": "^7.8.5",
|
|
102
102
|
"simple-git": "^3.36.0",
|
|
103
103
|
"vitest": "^4.1.10",
|
|
104
104
|
"yaml": "^2.9.0",
|
|
105
|
-
"@icebreakers/monorepo-templates": "1.0.
|
|
105
|
+
"@icebreakers/monorepo-templates": "1.0.15"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@types/klaw": "^3.0.7",
|