@icebreakers/monorepo 6.4.4 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{baseline-CDK5S6ZW.mjs → baseline-CQVDciG4.mjs} +1 -1
- package/dist/{catalog-DGNEXpLv.mjs → catalog-6_tT0U3p.mjs} +4 -4
- package/dist/cli.mjs +63 -63
- package/dist/{commands-Dmb6rHT4.mjs → commands-DPb06B1C.mjs} +139 -259
- package/dist/{config-CS8bKmur.mjs → config-CT_nsp4o.mjs} +3 -3
- package/dist/{create-flow-D2qerhKE.mjs → create-flow-Ct7XKrYP.mjs} +3 -3
- package/dist/{deps-DYRGuzg7.mjs → deps-CIrWBABk.mjs} +4 -4
- package/dist/{execute-BZEh5hv0.mjs → execute-Y_6G_tEl.mjs} +2 -2
- package/dist/{execute-Kt3jCIFG.mjs → execute-e7SGX_Y0.mjs} +2 -2
- package/dist/{format-BzyiA7aM.mjs → format-jsSjadNe.mjs} +1 -1
- package/dist/{index-CyUOTGW4.d.mts → index-C7KR7hT8.d.mts} +1 -1
- package/dist/index.d.mts +20 -21
- package/dist/index.mjs +10 -10
- package/dist/{inputs-mUJQYN3g.mjs → inputs-DOUYGoHq.mjs} +1 -1
- package/dist/{npm-EfMYAoVh.mjs → npm-tUIGIuFQ.mjs} +1 -1
- package/dist/{plan-DGfos4Wg.mjs → plan-DC33-_or.mjs} +2 -1
- package/dist/{run-BBN7BB2_.mjs → run-DT6Q-jbq.mjs} +4 -4
- package/dist/{save-7etYAM7X.mjs → save-Foea-Ao9.mjs} +3 -3
- package/dist/{scan-BxDY-M_i.mjs → scan-DA7VmNjC.mjs} +2 -2
- package/dist/{template-drift-D7X1YsG7.mjs → template-drift-B18bgxT6.mjs} +3 -4
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-tscI6vJX.mjs → transaction-B4vPaBcK.mjs} +2 -2
- package/dist/{tsconfig-BGyabp3n.mjs → tsconfig-DpOi_7HA.mjs} +46 -152
- package/dist/{vitest-DjBZRWbO.mjs → vitest-Dh5Qm_3L.mjs} +1 -1
- package/dist/{workspace-tasks-nNbJAF4u.mjs → workspace-tasks-Ca1zWNKr.mjs} +14 -36
- package/package.json +17 -13
- package/dist/rolldown-runtime-BJohB4LM.mjs +0 -13
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.mjs";
|
|
2
1
|
import { createRequire } from "node:module";
|
|
3
2
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
3
|
import path, { normalize } from "pathe";
|
|
5
4
|
import process from "node:process";
|
|
6
5
|
import { lstat, readFile, realpath } from "node:fs/promises";
|
|
7
|
-
import fs$1 from "node:fs";
|
|
6
|
+
import fs$1, { existsSync, readFileSync } from "node:fs";
|
|
8
7
|
import { loadConfig } from "c12";
|
|
9
8
|
import { createDefu } from "defu";
|
|
10
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
10
|
import { satisfies, valid, validRange } from "semver";
|
|
12
11
|
import validatePackageName from "validate-npm-package-name";
|
|
13
12
|
import { createHash } from "node:crypto";
|
|
14
|
-
import path$1 from "node:path";
|
|
13
|
+
import path$1, * as path$2 from "node:path";
|
|
15
14
|
import { fileURLToPath } from "node:url";
|
|
16
15
|
import { parse as parse$1 } from "comment-json";
|
|
16
|
+
// \0rolldown/runtime.js
|
|
17
|
+
var __defProp = Object.defineProperty;
|
|
18
|
+
var __exportAll = (all, flags) => {
|
|
19
|
+
let target = Object.setPrototypeOf({}, null);
|
|
20
|
+
for (var name in all) __defProp(target, name, {
|
|
21
|
+
get: all[name],
|
|
22
|
+
enumerable: true
|
|
23
|
+
});
|
|
24
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
26
|
+
};
|
|
17
27
|
// src/core/config/context.ts
|
|
18
28
|
/** Workspace-wide commands always consume root policy, even when invoked in a package. */
|
|
19
29
|
async function commandConfigDirectory(name, cwd) {
|
|
@@ -912,154 +922,38 @@ function mergeConfigValues(layers, replaceObject) {
|
|
|
912
922
|
sources
|
|
913
923
|
};
|
|
914
924
|
}
|
|
915
|
-
//
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
"types": "./dist/index.d.mts",
|
|
948
|
-
"default": "./dist/index.mjs"
|
|
949
|
-
},
|
|
950
|
-
"./cli": {
|
|
951
|
-
"types": "./dist/cli.d.mts",
|
|
952
|
-
"default": "./dist/cli.mjs"
|
|
953
|
-
},
|
|
954
|
-
"./tooling": {
|
|
955
|
-
"types": "./dist/tooling-entry.d.mts",
|
|
956
|
-
"default": "./dist/tooling-entry.mjs"
|
|
957
|
-
},
|
|
958
|
-
"./tsconfig": "./tsconfig.base.json",
|
|
959
|
-
"./tsconfig.json": "./tsconfig.base.json",
|
|
960
|
-
"./package.json": "./package.json",
|
|
961
|
-
"./docs-context": {
|
|
962
|
-
"types": "./dist/docs-context-entry.d.mts",
|
|
963
|
-
"default": "./dist/docs-context-entry.mjs"
|
|
964
|
-
}
|
|
965
|
-
},
|
|
966
|
-
main: "./dist/index.mjs",
|
|
967
|
-
module: "./dist/index.mjs",
|
|
968
|
-
types: "./dist/index.d.mts",
|
|
969
|
-
bin: {
|
|
970
|
-
"repo": "bin/repo.js",
|
|
971
|
-
"repoctl": "bin/repoctl.js"
|
|
972
|
-
},
|
|
973
|
-
files: [
|
|
974
|
-
"README.md",
|
|
975
|
-
"bin",
|
|
976
|
-
"dist",
|
|
977
|
-
"resources",
|
|
978
|
-
"tsconfig.base.json"
|
|
979
|
-
],
|
|
980
|
-
engines,
|
|
981
|
-
scripts: {
|
|
982
|
-
"dev": "tsdown --watch --sourcemap",
|
|
983
|
-
"build": "tsdown",
|
|
984
|
-
"test": "vitest run",
|
|
985
|
-
"test:dev": "vitest",
|
|
986
|
-
"typecheck": "pnpm --filter @icebreakers/monorepo-templates build && node ../../node_modules/typescript/bin/tsc -p tsconfig.json",
|
|
987
|
-
"tsd": "pnpm build && tsd --files test-d/**/*.test-d.ts",
|
|
988
|
-
"release": "pnpm publish",
|
|
989
|
-
"lint": "eslint .",
|
|
990
|
-
"lint:fix": "eslint . --fix"
|
|
991
|
-
},
|
|
992
|
-
peerDependencies: {
|
|
993
|
-
"@commitlint/cli": "catalog:",
|
|
994
|
-
"eslint": "^9.0.0 || ^10.0.0",
|
|
995
|
-
"stylelint": "^17.16.0 || ^18.0.0",
|
|
996
|
-
"typescript": "^5.0.0 || ^6.0.0"
|
|
997
|
-
},
|
|
998
|
-
peerDependenciesMeta: {
|
|
999
|
-
"@commitlint/cli": { "optional": true },
|
|
1000
|
-
"eslint": { "optional": true },
|
|
1001
|
-
"stylelint": { "optional": true },
|
|
1002
|
-
"typescript": { "optional": true }
|
|
1003
|
-
},
|
|
1004
|
-
dependencies: {
|
|
1005
|
-
"@arethetypeswrong/core": "0.18.5",
|
|
1006
|
-
"@babel/parser": "^8.0.10",
|
|
1007
|
-
"@icebreakers/commitlint-config": "workspace:*",
|
|
1008
|
-
"@icebreakers/eslint-config": "workspace:*",
|
|
1009
|
-
"@icebreakers/monorepo-templates": "workspace:*",
|
|
1010
|
-
"@icebreakers/stylelint-config": "workspace:*",
|
|
1011
|
-
"@npmcli/config": "11.2.0",
|
|
1012
|
-
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
1013
|
-
"@pnpm/fs.find-packages": "^1000.0.24",
|
|
1014
|
-
"@pnpm/types": "^1102.1.3",
|
|
1015
|
-
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
1016
|
-
"@types/node": "26.6.6",
|
|
1017
|
-
"c12": "^3.3.4",
|
|
1018
|
-
"commander": "catalog:",
|
|
1019
|
-
"comment-json": "catalog:",
|
|
1020
|
-
"consola": "^3.4.2",
|
|
1021
|
-
"cross-spawn": "^7.0.6",
|
|
1022
|
-
"defu": "^6.1.7",
|
|
1023
|
-
"esbuild": "catalog:",
|
|
1024
|
-
"git-url-parse": "^16.1.0",
|
|
1025
|
-
"json5": "^2.2.3",
|
|
1026
|
-
"klaw": "^4.1.0",
|
|
1027
|
-
"micromatch": "^4.0.8",
|
|
1028
|
-
"node-diff3": "~3.2.1",
|
|
1029
|
-
"p-queue": "^10.0.0",
|
|
1030
|
-
"pacote": "22.0.1",
|
|
1031
|
-
"pathe": "^2.0.3",
|
|
1032
|
-
"picocolors": "^1.1.1",
|
|
1033
|
-
"pkg-pr-new": "0.0.91",
|
|
1034
|
-
"publint": "0.3.25",
|
|
1035
|
-
"semver": "catalog:",
|
|
1036
|
-
"simple-git": "^4.0.2",
|
|
1037
|
-
"tar": "7.5.22",
|
|
1038
|
-
"tinyglobby": "^0.2.17",
|
|
1039
|
-
"validate-npm-package-name": "^7.0.2",
|
|
1040
|
-
"vitest": "catalog:",
|
|
1041
|
-
"yaml": "catalog:",
|
|
1042
|
-
"yauzl": "3.4.0"
|
|
1043
|
-
},
|
|
1044
|
-
devDependencies: {
|
|
1045
|
-
"@microsoft/api-extractor": "7.60.1",
|
|
1046
|
-
"@types/cross-spawn": "^6.0.6",
|
|
1047
|
-
"@types/klaw": "^3.0.8",
|
|
1048
|
-
"@types/micromatch": "^4.0.10",
|
|
1049
|
-
"@types/npmcli__config": "^6.0.4",
|
|
1050
|
-
"@types/pacote": "^11.1.8",
|
|
1051
|
-
"@types/semver": "catalog:",
|
|
1052
|
-
"@types/validate-npm-package-name": "^4.0.2",
|
|
1053
|
-
"@types/yauzl": "3.4.0",
|
|
1054
|
-
"ci-info": "^4.4.0",
|
|
1055
|
-
"fdir": "^6.5.0",
|
|
1056
|
-
"knip": "6.44.1"
|
|
1057
|
-
},
|
|
1058
|
-
publishConfig: {
|
|
1059
|
-
"access": "public",
|
|
1060
|
-
"registry": "https://registry.npmjs.org"
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
925
|
+
// src/constants.ts
|
|
926
|
+
const require = createRequire(import.meta.url);
|
|
927
|
+
/**
|
|
928
|
+
* 用户默认看到的 CLI 名称,帮助文案和生成脚本都统一引导到 repo。
|
|
929
|
+
*/
|
|
930
|
+
const cliName = "repo";
|
|
931
|
+
/**
|
|
932
|
+
* 还原出 package.json 所在的绝对路径,方便后续按目录组织资源文件。
|
|
933
|
+
*/
|
|
934
|
+
const packageJsonPath = fileURLToPath(new URL("../package.json", import.meta.url));
|
|
935
|
+
const packageMetadata = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
936
|
+
/**
|
|
937
|
+
* CLI 本身的基础信息,直接复用 package.json 里的 name/version,避免重复维护。
|
|
938
|
+
*/
|
|
939
|
+
const packageName = packageMetadata.name;
|
|
940
|
+
const version = packageMetadata.version;
|
|
941
|
+
/**
|
|
942
|
+
* @icebreakers/monorepo 包的根目录。
|
|
943
|
+
*/
|
|
944
|
+
const packageDir = path$2.dirname(packageJsonPath);
|
|
945
|
+
/**
|
|
946
|
+
* CLI 提供的模板/资产目录来源于 @icebreakers/monorepo-templates。
|
|
947
|
+
* 这里只解析 package.json 路径,避免 CLI 启动时加载模板包入口。
|
|
948
|
+
*/
|
|
949
|
+
const templatesPackageDir = path$2.dirname(require.resolve("@icebreakers/monorepo-templates/package.json"));
|
|
950
|
+
const assetsDir = path$2.join(templatesPackageDir, "assets");
|
|
951
|
+
const templatesDir = path$2.join(templatesPackageDir, "templates");
|
|
952
|
+
/**
|
|
953
|
+
* monorepo 根目录,方便需要跳出当前包的逻辑(例如定位工作区文件)。
|
|
954
|
+
*/
|
|
955
|
+
const workspaceRootDir = path$2.resolve(packageDir, "..", "..");
|
|
956
|
+
const rootDir = existsSync(path$2.join(workspaceRootDir, "pnpm-workspace.yaml")) ? workspaceRootDir : packageDir;
|
|
1063
957
|
// src/core/file-transaction/paths.ts
|
|
1064
958
|
function hash(content) {
|
|
1065
959
|
return createHash("sha256").update(content).digest("hex");
|
|
@@ -1659,4 +1553,4 @@ async function defineTsconfigConfig(input = {}) {
|
|
|
1659
1553
|
const resolved = resolveConfigInput(input);
|
|
1660
1554
|
return createMonorepoTsconfig(mergeTsconfig(await loadToolingSection("tsconfig", resolved.cwd) ?? {}, resolved.options));
|
|
1661
1555
|
}
|
|
1662
|
-
export {
|
|
1556
|
+
export { validateSchema as $, packageDir as A, normalizeTemplateSourceRequest as B, checkedFile as C, relativeFile as D, readOptionalSource as E, mergeConfigValues as F, isUpgradeExpiry as G, sourceRequestKey as H, ConfigValidationError as I, presetPackageName as J, defaultNightlyQualityTimeoutMs as K, assertMonorepoConfig as L, rootDir as M, templatesDir as N, assetsDir as O, version as P, isRecord as Q, validateMonorepoConfig as R, canonicalDirectory as S, readOptional as T, templateSourcePath as U, registryUrl as V, commandSchemas as W, withLegacyHookConfig as X, presetVersion as Y, replaceDocsTarget as Z, listToolingCapabilities as _, loadToolingSection as a, presetRelativePath as b, config_exports as c, loadMonorepoConfig as d, appendConfigPath as et, loadMonorepoConfigDetails as f, presetAssetTarget as g, resolveOrganizationPresets as h, loadMonorepoToolingConfig as i, packageName as j, cliName as k, defineMonorepoConfig as l, resolveToolingConfig as m, defineTsconfigConfig as n, commandConfigDirectory as nt, resolveConfigInput as o, resolveCommandConfig as p, resolveNightlyConfig as q, isDefineConfigWrapper as r, __exportAll as rt, configExtensions as s, createMonorepoTsconfig as t, splitConfigPath as tt, getRepoctlConfigCandidates as u, installedPresetDirectory as v, hash as w, readPresetFile as x, parsePresetJson as y, normalizeTemplateRemoteSource as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-
|
|
1
|
+
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-DpOi_7HA.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-BGyabp3n.mjs";
|
|
1
|
+
import { I as ConfigValidationError, P as version, f as loadMonorepoConfigDetails, rt as __exportAll, u as getRepoctlConfigCandidates } from "./tsconfig-DpOi_7HA.mjs";
|
|
3
2
|
import { createRequire } from "node:module";
|
|
4
3
|
import gitUrlParse from "git-url-parse";
|
|
5
4
|
import { simpleGit } from "simple-git";
|
|
@@ -13,8 +12,7 @@ import { spawnSync } from "node:child_process";
|
|
|
13
12
|
import { constants, realpathSync } from "node:fs";
|
|
14
13
|
import semver from "semver";
|
|
15
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
16
|
-
import path$1
|
|
17
|
-
import { fileURLToPath } from "node:url";
|
|
15
|
+
import path$1 from "node:path";
|
|
18
16
|
import crossSpawn from "cross-spawn";
|
|
19
17
|
import { canVerifyTemplateInstance, captureTemplateSnapshot, compareTemplateSnapshots, generationParameters, getTemplateDefinition, instanceRelativePath, isExactTemplateVersion, listTemplateInstances, loadTemplateBaseline, loadTemplateBaseline as loadTemplateBaseline$1, loadTemplateInstanceRegistry, loadTemplateInstanceRegistry as loadTemplateInstanceRegistry$1, normalizeTemplateExclusions, packageDir, prepareTemplateInstanceSource, readTemplatePackageVersion, readTemplateParameterManifest, rebuildTemplateInstanceBaseline, registerTemplateInstances, relocateTemplateInstance, renderTemplateParameters, replaceTemplateInstance, resolveTemplateParameters, safeInstancePath, scaffoldTemplate, snapshotDigest, templateInstanceId } from "@icebreakers/monorepo-templates";
|
|
20
18
|
import { Buffer } from "node:buffer";
|
|
@@ -531,31 +529,6 @@ function message(key, values = {}) {
|
|
|
531
529
|
const catalog = repoctlLocale === "zh-CN" ? zhCNMessages : enMessages;
|
|
532
530
|
return Object.entries(values).reduce((result, [name, value]) => result.replaceAll(`{${name}}`, value), catalog[key]);
|
|
533
531
|
}
|
|
534
|
-
// src/constants.ts
|
|
535
|
-
const require = createRequire(import.meta.url);
|
|
536
|
-
/**
|
|
537
|
-
* 用户默认看到的 CLI 名称,帮助文案和生成脚本都统一引导到 repo。
|
|
538
|
-
*/
|
|
539
|
-
const cliName = "repo";
|
|
540
|
-
/**
|
|
541
|
-
* 还原出 package.json 所在的绝对路径,方便后续按目录组织资源文件。
|
|
542
|
-
*/
|
|
543
|
-
const packageJsonPath = fileURLToPath(new URL("../package.json", import.meta.url));
|
|
544
|
-
/**
|
|
545
|
-
* @icebreakers/monorepo 包的根目录。
|
|
546
|
-
*/
|
|
547
|
-
const packageDir$1 = path$2.dirname(packageJsonPath);
|
|
548
|
-
/**
|
|
549
|
-
* CLI 提供的模板/资产目录来源于 @icebreakers/monorepo-templates。
|
|
550
|
-
* 这里只解析 package.json 路径,避免 CLI 启动时加载模板包入口。
|
|
551
|
-
*/
|
|
552
|
-
const templatesPackageDir = path$2.dirname(require.resolve("@icebreakers/monorepo-templates/package.json"));
|
|
553
|
-
const assetsDir$1 = path$2.join(templatesPackageDir, "assets");
|
|
554
|
-
const templatesDir = path$2.join(templatesPackageDir, "templates");
|
|
555
|
-
/**
|
|
556
|
-
* monorepo 根目录,方便需要跳出当前包的逻辑(例如定位工作区文件)。
|
|
557
|
-
*/
|
|
558
|
-
const rootDir = path$2.resolve(packageDir$1, "..", "..");
|
|
559
532
|
// src/commands/clean/safety.ts
|
|
560
533
|
function unsafe(target) {
|
|
561
534
|
return new Error(localize(`Unsafe cleanup target: ${target}`, `清理目标不安全:${target}`));
|
|
@@ -1947,16 +1920,16 @@ var knip_exports = /* @__PURE__ */ __exportAll({
|
|
|
1947
1920
|
saveKnipBaseline: () => saveKnipBaseline
|
|
1948
1921
|
});
|
|
1949
1922
|
async function planKnipCheck(cwd, options = {}) {
|
|
1950
|
-
return (await import("./plan-
|
|
1923
|
+
return (await import("./plan-DC33-_or.mjs")).planKnipCheck(cwd, options);
|
|
1951
1924
|
}
|
|
1952
1925
|
async function runKnipCheck(cwd, options = {}) {
|
|
1953
|
-
return (await import("./run-
|
|
1926
|
+
return (await import("./run-DT6Q-jbq.mjs")).runKnipCheck(cwd, options);
|
|
1954
1927
|
}
|
|
1955
1928
|
async function getKnipConfigurationSuggestions(cwd) {
|
|
1956
|
-
return (await import("./config-
|
|
1929
|
+
return (await import("./config-CT_nsp4o.mjs")).getKnipConfigurationSuggestions(cwd);
|
|
1957
1930
|
}
|
|
1958
1931
|
async function saveKnipBaseline(cwd, report, file) {
|
|
1959
|
-
return (await import("./save-
|
|
1932
|
+
return (await import("./save-Foea-Ao9.mjs")).saveKnipBaseline(cwd, report, file);
|
|
1960
1933
|
}
|
|
1961
1934
|
// src/commands/env-cache/config.ts
|
|
1962
1935
|
const arrays = [
|
|
@@ -2743,10 +2716,15 @@ function referencePath(source, target) {
|
|
|
2743
2716
|
}
|
|
2744
2717
|
// src/commands/project-references/compiler.ts
|
|
2745
2718
|
function loadCompiler(root) {
|
|
2719
|
+
const require = createRequire(path.join(root, "package.json"));
|
|
2720
|
+
try {
|
|
2721
|
+
const compiler = require("typescript");
|
|
2722
|
+
if (typeof compiler.parseConfigFileTextToJson === "function" && compiler.ScriptTarget) return compiler;
|
|
2723
|
+
} catch {}
|
|
2746
2724
|
try {
|
|
2747
|
-
return createRequire(
|
|
2725
|
+
return createRequire(import.meta.url)("@typescript/typescript6");
|
|
2748
2726
|
} catch {
|
|
2749
|
-
throw new Error("Install TypeScript in the workspace
|
|
2727
|
+
throw new Error("Install TypeScript 5 or 6 in the workspace, or install @typescript/typescript6 for TypeScript 7 workspaces.");
|
|
2750
2728
|
}
|
|
2751
2729
|
}
|
|
2752
2730
|
function configReader(root, ts, inputs, diagnostics) {
|
|
@@ -4362,4 +4340,4 @@ async function locateWorkspace(cwd, query) {
|
|
|
4362
4340
|
candidates
|
|
4363
4341
|
};
|
|
4364
4342
|
}
|
|
4365
|
-
export { WorkspaceGraphQueryError as $, referenceTarget as A,
|
|
4343
|
+
export { WorkspaceGraphQueryError as $, referenceTarget as A, outputJson as At, saveKnipBaseline as B, getWorkspacePackages as Bt, loadCompiler as C, ensureDir as Ct, ownershipFile as D, isIgnorableFsError as Dt, exists as E, fs$2 as Et, env_cache_exports as F, writeJSON as Ft, cache_exports as G, signalExitCode as H, findWorkspacePackages as Ht, getKnipConfigurationSuggestions as I, writeJson as It, getWorkspaceGraph as J, mergeText as K, knip_exports as L, clearWorkspaceCache as Lt, formatEnvironmentCache as M, readJSON as Mt, format_exports as N, readJson as Nt, readText as O, outputFile as Ot, checkEnvironmentCache as P, remove as Pt, whyWorkspaceDependency as Q, planKnipCheck as R, getWorkspaceData as Rt, configReader as S, copy as St, compare$1 as T, exists$1 as Tt, stopCheckProcessTree as U, GitClient as Ut, executeCheckTask as V, workspace_exports as Vt, analyzeTurboRuns as W, filterWorkspaceGraph as X, parseDependencyReference as Y, getWorkspaceImpact as Z, planTemplateLink as _, localize as _t, inspectWorkspaceOwners as a, record$2 as at, planGenerate as b, resolveRepoctlLocale as bt, loadTemplateInstanceRegistry$1 as c, renderCreateNewProject as ct, template_instances_exports as d, migrateLegacyToolingReferences as dt, compareGraphValues as et, recoverTemplateUpgrade as f, setByPath as ft, applyTemplateLinkPlan as g, validateCleanTargets as gt, loadTemplateUpgradeJournal as h, isWithin as ht, planCodeowners as i, readInput as it, relativeFile as j, pathExists as jt, referencePath as k, outputJSON as kt, rebuildTemplateInstanceBaseline as l, rewriteTemplateSnapshotReferences as lt, planTemplateUpgrade as m, assertSafePath as mt, locateWorkspace as n, workspaceDependencyTypes as nt, listTemplateInstances as o, safeFile as ot, applyTemplateUpgradePlan as p, stageFileTransaction as pt, withOperationLock as q, applyCodeownersPlan as r, hash as rt, loadTemplateBaseline$1 as s, updateManifest as st, getWorkspaceTaskCatalog as t, resolveWorkspaceGraphNode as tt, relocateTemplateInstance as u, hasLegacyToolingReference as ut, generate_exports as v, message as vt, validateGraph as w, ensureFile as wt, generators as x, supportedLocales as xt, applyGeneratePlan as y, repoctlLocale as yt, runKnipCheck as z, getWorkspacePackageSummaries as zt };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.5.1",
|
|
5
5
|
"description": "Core engine and programmatic APIs for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@commitlint/cli": "^21.2.4",
|
|
71
71
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
72
72
|
"stylelint": "^17.16.0 || ^18.0.0",
|
|
73
|
-
"typescript": "^5.0.0 || ^6.0.0"
|
|
73
|
+
"typescript": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@commitlint/cli": {
|
|
@@ -88,19 +88,20 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@arethetypeswrong/core": "0.18.5",
|
|
91
|
-
"@babel/parser": "^8.0
|
|
91
|
+
"@babel/parser": "^8.1.0",
|
|
92
92
|
"@icebreakers/commitlint-config": "4.1.5",
|
|
93
|
-
"@icebreakers/eslint-config": "8.0.
|
|
94
|
-
"@icebreakers/monorepo-templates": "3.2.
|
|
95
|
-
"@icebreakers/stylelint-config": "6.0.
|
|
93
|
+
"@icebreakers/eslint-config": "8.0.16",
|
|
94
|
+
"@icebreakers/monorepo-templates": "3.2.3",
|
|
95
|
+
"@icebreakers/stylelint-config": "6.0.2",
|
|
96
96
|
"@npmcli/config": "11.2.0",
|
|
97
97
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
98
98
|
"@pnpm/fs.find-packages": "^1000.0.24",
|
|
99
99
|
"@pnpm/types": "^1102.1.3",
|
|
100
100
|
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
101
101
|
"@types/node": "26.6.6",
|
|
102
|
+
"@typescript/typescript6": "6.0.2",
|
|
102
103
|
"c12": "^3.3.4",
|
|
103
|
-
"commander": "^15.
|
|
104
|
+
"commander": "^15.1.0",
|
|
104
105
|
"comment-json": "^5.0.0",
|
|
105
106
|
"consola": "^3.4.2",
|
|
106
107
|
"cross-spawn": "^7.0.6",
|
|
@@ -115,14 +116,14 @@
|
|
|
115
116
|
"pacote": "22.0.1",
|
|
116
117
|
"pathe": "^2.0.3",
|
|
117
118
|
"picocolors": "^1.1.1",
|
|
118
|
-
"pkg-pr-new": "0.0.
|
|
119
|
+
"pkg-pr-new": "0.0.93",
|
|
119
120
|
"publint": "0.3.25",
|
|
120
|
-
"semver": "^7.8.
|
|
121
|
+
"semver": "^7.8.6",
|
|
121
122
|
"simple-git": "^4.0.2",
|
|
122
123
|
"tar": "7.5.22",
|
|
123
124
|
"tinyglobby": "^0.2.17",
|
|
124
|
-
"validate-npm-package-name": "^
|
|
125
|
-
"vitest": "^5.0
|
|
125
|
+
"validate-npm-package-name": "^8.0.0",
|
|
126
|
+
"vitest": "^5.1.0",
|
|
126
127
|
"yaml": "^2.9.1",
|
|
127
128
|
"yauzl": "3.4.0"
|
|
128
129
|
},
|
|
@@ -136,9 +137,12 @@
|
|
|
136
137
|
"@types/semver": "^7.8.0",
|
|
137
138
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
138
139
|
"@types/yauzl": "3.4.0",
|
|
140
|
+
"@vitest/coverage-v8": "~5.1.0",
|
|
139
141
|
"ci-info": "^4.4.0",
|
|
140
142
|
"fdir": "^6.5.0",
|
|
141
|
-
"knip": "6.44.
|
|
143
|
+
"knip": "6.44.2",
|
|
144
|
+
"lefthook": "2.2.2",
|
|
145
|
+
"typescript": "~6.0.3"
|
|
142
146
|
},
|
|
143
147
|
"publishConfig": {
|
|
144
148
|
"access": "public",
|
|
@@ -149,7 +153,7 @@
|
|
|
149
153
|
"build": "tsdown",
|
|
150
154
|
"test": "vitest run",
|
|
151
155
|
"test:dev": "vitest",
|
|
152
|
-
"typecheck": "pnpm --filter @icebreakers/monorepo-templates build && node
|
|
156
|
+
"typecheck": "pnpm --filter @icebreakers/monorepo-templates build && node node_modules/typescript/bin/tsc -p tsconfig.json",
|
|
153
157
|
"tsd": "pnpm build && tsd --files test-d/**/*.test-d.ts",
|
|
154
158
|
"release": "pnpm publish",
|
|
155
159
|
"lint": "eslint .",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
// \0rolldown/runtime.js
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __exportAll = (all, no_symbols) => {
|
|
5
|
-
let target = {};
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
export { __exportAll as t };
|