@icebreakers/monorepo 6.3.0 → 6.3.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-BXoKjFDc.mjs → baseline-DeNco-Oq.mjs} +1 -1
- package/dist/{catalog-DudDvxE5.mjs → catalog-BaNTZju7.mjs} +3 -3
- package/dist/cli.mjs +62 -62
- package/dist/{commands-G_3pcd5o.mjs → commands-XgXSc1Oe.mjs} +144 -34
- package/dist/{config-DqJ0beGQ.mjs → config-yPo0D_l-.mjs} +3 -3
- package/dist/{create-flow-vqU0T6DM.mjs → create-flow-CKqjAiDn.mjs} +3 -3
- package/dist/{deps-CVyYELEM.mjs → deps-BZEixZ-s.mjs} +3 -3
- package/dist/{execute-UZ1AUrmz.mjs → execute-CoGuTJ05.mjs} +2 -2
- package/dist/{execute-C0tk43nV.mjs → execute-erp9jUMf.mjs} +2 -2
- package/dist/{format-3OSXfhZY.mjs → format-DTTZQ6J1.mjs} +1 -1
- package/dist/{index-B80WWXOe.d.mts → index-BBYRSLAi.d.mts} +2 -0
- package/dist/index.d.mts +15 -2
- package/dist/index.mjs +9 -9
- package/dist/{inputs-qTTW0pSA.mjs → inputs-_wD6MeHm.mjs} +1 -1
- package/dist/{npm-BdWubZeI.mjs → npm-7ge0pG6y.mjs} +1 -1
- package/dist/{plan-BLXqSULE.mjs → plan-BSD_7Zq0.mjs} +1 -1
- package/dist/{run-PZp-5W7K.mjs → run-BL7M6wKl.mjs} +4 -4
- package/dist/{save-DMGOqrDC.mjs → save-pUE8vyvm.mjs} +3 -3
- package/dist/{scan-CCqgGghe.mjs → scan-Bf5v7YIt.mjs} +2 -2
- package/dist/{template-drift-Bzhsxp8j.mjs → template-drift-BOHTihwf.mjs} +3 -3
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-DfrFvDMo.mjs → transaction-06DVgAlw.mjs} +2 -2
- package/dist/{tsconfig-DPfr8Ok1.mjs → tsconfig-C9-YXb3u.mjs} +13 -3
- package/dist/{vitest-DoVgJQaG.mjs → vitest-B5Jq29a6.mjs} +1 -1
- package/dist/{workspace-tasks-B3GGECnD.mjs → workspace-tasks-CRErTv9q.mjs} +5 -5
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { A as referenceTarget, B as saveKnipBaseline, C as loadCompiler, D as ownershipFile, E as exists$1, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, Jt as GitClient, K as mergeText, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, S as configReader, St as localize, T as compare$1, Tt as resolveRepoctlLocale, Ut as getWorkspaceData, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir$1, at as record$5, b as planGenerate, c as loadTemplateInstanceRegistry$1, ct as renderCreateNewProject, dt as migrateLegacyToolingReferences, et as compareGraphValues, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, gt as validateCleanTargets, h as loadTemplateUpgradeJournal, ht as isWithin, it as readInput, j as relativeFile, jt as fs$2, k as referencePath, l as rebuildTemplateInstanceBaseline, lt as rewriteTemplateSnapshotReferences, m as planTemplateUpgrade, mt as assertSafePath, nt as workspaceDependencyTypes, o as listTemplateInstances, ot as safeFile, p as applyTemplateUpgradePlan, pt as stageFileTransaction, q as withOperationLock, qt as findWorkspacePackages, rt as hash$1, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir$1, z as runKnipCheck } from "./workspace-tasks-
|
|
3
|
-
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, n as resolveAffectedCheckContext, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as runPnpmCommand } from "./execute-
|
|
4
|
-
import { A as package_default$1, B as templateSourcePath, C as checkedFile, D as relativeFile$1, E as readOptionalSource, G as
|
|
5
|
-
import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, o as matchGroup, r as parseSpecifier, s as resolveCommandValues, t as scanDependencies } from "./scan-
|
|
6
|
-
import { A as isRootAsset, B as toWorkspaceAssetPath, C as lockfileRecord, D as baselineDirectory, E as checkDependencyAdmission, F as getWorkspacePatterns, I as summarizeChecks, L as legacyStagedConfigNames, M as templatePackage, N as getAssetTargets, O as baselinePath, P as record$6, S as inspectPnpmRuntime, a as applyDoctorSuppressions, b as resolveReleaseBranches, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as parseBaseline, k as encodeBaseline, l as getDoctorRuleIds, m as settingState, o as validateDoctorSuppressions, p as readSecuritySources, r as formatTemplateDriftReport, s as validateDoctorConfiguration, t as checkTemplateDrift, u as selectDoctorRules, v as renderReleaseWorkflow, w as parseWorkspaceLockfile, x as ReleaseCommandError, y as releasePullRequestHead } from "./template-drift-
|
|
7
|
-
import { t as writeDependencyTransaction } from "./transaction-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
2
|
+
import { A as referenceTarget, B as saveKnipBaseline, C as loadCompiler, D as ownershipFile, E as exists$1, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, Jt as GitClient, K as mergeText, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, S as configReader, St as localize, T as compare$1, Tt as resolveRepoctlLocale, Ut as getWorkspaceData, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir$1, at as record$5, b as planGenerate, c as loadTemplateInstanceRegistry$1, ct as renderCreateNewProject, dt as migrateLegacyToolingReferences, et as compareGraphValues, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, gt as validateCleanTargets, h as loadTemplateUpgradeJournal, ht as isWithin, it as readInput, j as relativeFile, jt as fs$2, k as referencePath, l as rebuildTemplateInstanceBaseline, lt as rewriteTemplateSnapshotReferences, m as planTemplateUpgrade, mt as assertSafePath, nt as workspaceDependencyTypes, o as listTemplateInstances, ot as safeFile, p as applyTemplateUpgradePlan, pt as stageFileTransaction, q as withOperationLock, qt as findWorkspacePackages, rt as hash$1, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir$1, z as runKnipCheck } from "./workspace-tasks-CRErTv9q.mjs";
|
|
3
|
+
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, n as resolveAffectedCheckContext, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as runPnpmCommand } from "./execute-erp9jUMf.mjs";
|
|
4
|
+
import { $ as commandConfigDirectory, A as package_default$1, B as templateSourcePath, C as checkedFile, D as relativeFile$1, E as readOptionalSource, G as presetPackageName, H as isUpgradeExpiry, I as normalizeTemplateRemoteSource, K as presetVersion, L as normalizeTemplateSourceRequest, N as ConfigValidationError, O as engines$1, S as canonicalDirectory, T as readOptional$1, W as resolveNightlyConfig, Y as isRecord$2, Z as appendConfigPath, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, j as version$2, n as defineTsconfigConfig, p as resolveCommandConfig, q as withLegacyHookConfig, u as getRepoctlConfigCandidates, v as installedPresetDirectory, w as hash$2, x as readPresetFile, y as parsePresetJson, z as sourceRequestKey } from "./tsconfig-C9-YXb3u.mjs";
|
|
5
|
+
import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, o as matchGroup, r as parseSpecifier, s as resolveCommandValues, t as scanDependencies } from "./scan-Bf5v7YIt.mjs";
|
|
6
|
+
import { A as isRootAsset, B as toWorkspaceAssetPath, C as lockfileRecord, D as baselineDirectory, E as checkDependencyAdmission, F as getWorkspacePatterns, I as summarizeChecks, L as legacyStagedConfigNames, M as templatePackage, N as getAssetTargets, O as baselinePath, P as record$6, S as inspectPnpmRuntime, a as applyDoctorSuppressions, b as resolveReleaseBranches, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as parseBaseline, k as encodeBaseline, l as getDoctorRuleIds, m as settingState, o as validateDoctorSuppressions, p as readSecuritySources, r as formatTemplateDriftReport, s as validateDoctorConfiguration, t as checkTemplateDrift, u as selectDoctorRules, v as renderReleaseWorkflow, w as parseWorkspaceLockfile, x as ReleaseCommandError, y as releasePullRequestHead } from "./template-drift-BOHTihwf.mjs";
|
|
7
|
+
import { t as writeDependencyTransaction } from "./transaction-06DVgAlw.mjs";
|
|
8
|
+
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-BZEixZ-s.mjs";
|
|
9
|
+
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-BaNTZju7.mjs";
|
|
10
10
|
import { createRequire, isBuiltin } from "node:module";
|
|
11
11
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
12
12
|
import { readWorkspaceManifest } from "@pnpm/workspace.read-manifest";
|
|
@@ -1542,7 +1542,7 @@ async function downloadGitTemplate(source, directory, timeout) {
|
|
|
1542
1542
|
async function resolveRemoteTemplateSource(source, templatePath = ".", options = {}) {
|
|
1543
1543
|
const request = normalizeTemplateSourceRequest(source, templatePath);
|
|
1544
1544
|
const cwd = path$1.resolve(options.cwd ?? process.cwd());
|
|
1545
|
-
const npm = request.source.kind === "npm" ? await import("./npm-
|
|
1545
|
+
const npm = request.source.kind === "npm" ? await import("./npm-7ge0pG6y.mjs") : void 0;
|
|
1546
1546
|
const configuration = request.source.kind === "npm" ? await npm.npmTemplateConfiguration(request.source, cwd) : void 0;
|
|
1547
1547
|
if (request.source.kind === "npm") request.source.registry = configuration.registry;
|
|
1548
1548
|
const cacheDir = path$1.resolve(cwd, options.cacheDir ?? path$1.join(process.env["XDG_CACHE_HOME"] ?? path$1.join(homedir(), ".cache"), "repoctl", "template-sources-v1"));
|
|
@@ -13466,6 +13466,120 @@ function consumerAssetSource(entry, specifier, installed) {
|
|
|
13466
13466
|
].join("\n");
|
|
13467
13467
|
}
|
|
13468
13468
|
//#endregion
|
|
13469
|
+
//#region src/commands/package-check/consumer/runtime-contexts/source.ts
|
|
13470
|
+
/** 实际导入平台保护入口,只接受声明的精确错误。 */
|
|
13471
|
+
function expectedErrorConsumerSource(specifier, context) {
|
|
13472
|
+
return [
|
|
13473
|
+
"let failure;",
|
|
13474
|
+
`try { await import(${JSON.stringify(specifier)}); } catch (error) { failure = error; }`,
|
|
13475
|
+
`if (!(failure instanceof Error) || failure.name !== ${JSON.stringify(context.name)} || failure.message !== ${JSON.stringify(context.message)}) throw new Error("Entry did not preserve its declared unavailable-runtime error.", { cause: failure });`
|
|
13476
|
+
].join("\n");
|
|
13477
|
+
}
|
|
13478
|
+
//#endregion
|
|
13479
|
+
//#region src/commands/package-check/consumer/runtime-contexts/vitest.ts
|
|
13480
|
+
function importTarget(value) {
|
|
13481
|
+
if (typeof value === "string") return value;
|
|
13482
|
+
if (Array.isArray(value)) return value.map(importTarget).find(Boolean);
|
|
13483
|
+
if (value && typeof value === "object") {
|
|
13484
|
+
for (const [condition, target] of Object.entries(value)) if ([
|
|
13485
|
+
"node",
|
|
13486
|
+
"import",
|
|
13487
|
+
"default"
|
|
13488
|
+
].includes(condition)) {
|
|
13489
|
+
const resolved = importTarget(target);
|
|
13490
|
+
if (resolved) return resolved;
|
|
13491
|
+
}
|
|
13492
|
+
}
|
|
13493
|
+
}
|
|
13494
|
+
function inside$3(root, filename) {
|
|
13495
|
+
const relative = path$1.relative(root, filename);
|
|
13496
|
+
if (!relative || relative === ".." || relative.startsWith(`..${path$1.sep}`) || path$1.isAbsolute(relative)) throw new Error("Consumer resolved Vitest outside its isolated directory.");
|
|
13497
|
+
}
|
|
13498
|
+
/** 使用隔离消费者安装的真实 Vitest 执行 setup 和生命周期 smoke case。 */
|
|
13499
|
+
async function vitestConsumerInvocation(entry, specifier, directory, installed) {
|
|
13500
|
+
const root = await realpath(directory);
|
|
13501
|
+
const require = createRequire(path$1.join(installed, "package.json"));
|
|
13502
|
+
const manifestFile = await realpath(require.resolve("vitest/package.json"));
|
|
13503
|
+
inside$3(root, manifestFile);
|
|
13504
|
+
const manifest = JSON.parse(await readFile(manifestFile, "utf8"));
|
|
13505
|
+
const bin = typeof manifest.bin === "string" ? manifest.bin : manifest.bin?.vitest;
|
|
13506
|
+
const target = importTarget(manifest.exports?.["."] ?? manifest.exports ?? manifest.module);
|
|
13507
|
+
if (manifest.name !== "vitest" || typeof manifest.version !== "string" || !manifest.version || typeof bin !== "string" || typeof target !== "string" || !target.startsWith("./")) throw new Error("Consumer requires an installed Vitest CLI and declared ESM entry.");
|
|
13508
|
+
const cli = await realpath(path$1.resolve(path$1.dirname(manifestFile), bin));
|
|
13509
|
+
const frameworkEntry = await realpath(path$1.resolve(path$1.dirname(manifestFile), target));
|
|
13510
|
+
inside$3(root, cli);
|
|
13511
|
+
inside$3(root, frameworkEntry);
|
|
13512
|
+
const smoke = await mkdtemp(path$1.join(root, ".repoctl-vitest-"));
|
|
13513
|
+
const testFile = path$1.join(smoke, "setup.test.mjs");
|
|
13514
|
+
const configFile = path$1.join(smoke, "vitest.config.mjs");
|
|
13515
|
+
const runnerFile = path$1.join(smoke, "run.mjs");
|
|
13516
|
+
await writeFile(testFile, `import { test } from ${JSON.stringify(pathToFileURL(frameworkEntry).href)};\ntest("declared setup executes in Vitest", () => {});\n`);
|
|
13517
|
+
await writeFile(configFile, `export default ${JSON.stringify({
|
|
13518
|
+
root,
|
|
13519
|
+
test: {
|
|
13520
|
+
include: [path$1.relative(root, testFile).split(path$1.sep).join("/")],
|
|
13521
|
+
setupFiles: [specifier],
|
|
13522
|
+
environment: "node",
|
|
13523
|
+
fileParallelism: false,
|
|
13524
|
+
maxWorkers: 1,
|
|
13525
|
+
watch: false,
|
|
13526
|
+
passWithNoTests: false
|
|
13527
|
+
}
|
|
13528
|
+
})};\n`);
|
|
13529
|
+
await writeFile(runnerFile, [
|
|
13530
|
+
consumerAssetSource(entry, specifier, installed),
|
|
13531
|
+
`process.argv = [process.execPath, ${JSON.stringify(cli)}, "run", "--config", ${JSON.stringify(configFile)}];`,
|
|
13532
|
+
`await import(${JSON.stringify(pathToFileURL(cli).href)});`
|
|
13533
|
+
].join("\n"));
|
|
13534
|
+
return [runnerFile];
|
|
13535
|
+
}
|
|
13536
|
+
//#endregion
|
|
13537
|
+
//#region src/commands/package-check/consumer/runtime-contexts/index.ts
|
|
13538
|
+
function exactSubpath(value) {
|
|
13539
|
+
return value === "." || value.startsWith("./") && !value.includes("*") && !value.includes("\\") && value.slice(2).split("/").every((segment) => segment && segment !== "." && segment !== "..");
|
|
13540
|
+
}
|
|
13541
|
+
function runtimeContext(value) {
|
|
13542
|
+
if (value === "vitest") return true;
|
|
13543
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
13544
|
+
const context = value;
|
|
13545
|
+
return Object.keys(context).sort().join(",") === "kind,message,name" && context["kind"] === "expected-error" && context["name"] === "Error" && typeof context["message"] === "string" && context["message"].trim().length > 0;
|
|
13546
|
+
}
|
|
13547
|
+
/** 校验精确入口的运行合同,不改变其他入口的默认 Node 行为。 */
|
|
13548
|
+
function consumerRuntimeContexts(manifest) {
|
|
13549
|
+
const contexts = manifest.repoctl?.packageCheck?.runtimeContexts;
|
|
13550
|
+
const result = /* @__PURE__ */ new Map();
|
|
13551
|
+
if (contexts === void 0) return result;
|
|
13552
|
+
if (!contexts || typeof contexts !== "object" || Array.isArray(contexts)) throw new TypeError("packageCheck.runtimeContexts must be an object of exact export subpaths.");
|
|
13553
|
+
for (const [subpath, context] of Object.entries(contexts)) {
|
|
13554
|
+
if (!exactSubpath(subpath) || !runtimeContext(context)) throw new TypeError("packageCheck.runtimeContexts requires an exact export and a supported runtime contract.");
|
|
13555
|
+
if (context === "vitest" && ![
|
|
13556
|
+
manifest.dependencies,
|
|
13557
|
+
manifest.optionalDependencies,
|
|
13558
|
+
manifest.peerDependencies
|
|
13559
|
+
].some((dependencies) => typeof dependencies?.["vitest"] === "string" && dependencies["vitest"].trim())) throw new Error("A Vitest runtime context requires a declared Vitest dependency or peer.");
|
|
13560
|
+
result.set(subpath, context);
|
|
13561
|
+
}
|
|
13562
|
+
return result;
|
|
13563
|
+
}
|
|
13564
|
+
/** 运行合同必须指向已打包、无资源合同冲突的单一 ESM 入口。 */
|
|
13565
|
+
function validateRuntimeContextEntries(manifest, files, entries, contexts) {
|
|
13566
|
+
for (const subpath of contexts.keys()) {
|
|
13567
|
+
const matches = entries.filter((entry) => entry.subpath === subpath && entry.runtime);
|
|
13568
|
+
if (!matches.length || matches.some((entry) => entry.asset || entry.format !== "esm" || !exactSubpath(entry.target) || entry.target === "." || !files.includes(entry.target.slice(2)))) throw new Error(`Runtime context ${manifest.name}${subpath.slice(1)} must name a packed ESM export without a runtime asset contract.`);
|
|
13569
|
+
}
|
|
13570
|
+
}
|
|
13571
|
+
/** 打包前后消费者共享入口执行方式,并继续真实解析、导入或运行 setup。 */
|
|
13572
|
+
async function consumerRuntimeInvocation(entry, specifier, directory, installed) {
|
|
13573
|
+
if (entry.context === "vitest") return vitestConsumerInvocation(entry, specifier, directory, installed);
|
|
13574
|
+
const source = typeof entry.context === "object" ? `${consumerAssetSource(entry, specifier, installed)}\n${expectedErrorConsumerSource(specifier, entry.context)}` : entry.asset ? consumerAssetSource(entry, specifier, installed) : entry.format === "esm" ? `await import(${JSON.stringify(specifier)})` : `require(${JSON.stringify(specifier)})`;
|
|
13575
|
+
return [
|
|
13576
|
+
"--input-type",
|
|
13577
|
+
entry.format === "esm" ? "module" : "commonjs",
|
|
13578
|
+
"--eval",
|
|
13579
|
+
source
|
|
13580
|
+
];
|
|
13581
|
+
}
|
|
13582
|
+
//#endregion
|
|
13469
13583
|
//#region src/commands/package-check/entries.ts
|
|
13470
13584
|
function resolveTarget(value, conditions) {
|
|
13471
13585
|
if (typeof value === "string") return value;
|
|
@@ -13497,6 +13611,7 @@ function expand(subpath, target, files) {
|
|
|
13497
13611
|
/** 仅执行声明的 Node 入口;原生扩展通过 CommonJS 实际加载。 */
|
|
13498
13612
|
function consumerEntries(manifest, files) {
|
|
13499
13613
|
const assets = consumerRuntimeAssets(manifest);
|
|
13614
|
+
const contexts = consumerRuntimeContexts(manifest);
|
|
13500
13615
|
const exports = manifest.exports;
|
|
13501
13616
|
const mappings = exports && typeof exports === "object" && !Array.isArray(exports) && Object.keys(exports).some((key) => key.startsWith(".")) ? exports : { ".": exports !== void 0 ? exports : manifest.main ?? (files.includes("index.js") ? "./index.js" : void 0) };
|
|
13502
13617
|
const entries = [];
|
|
@@ -13522,10 +13637,12 @@ function consumerEntries(manifest, files) {
|
|
|
13522
13637
|
const asset = assets.has(expanded.subpath);
|
|
13523
13638
|
const declaration = expanded.target.replace(/\.([cm]?)js$/u, ".d.$1ts").replace(/^\.\//u, "");
|
|
13524
13639
|
const typecheck = declaresCondition(value, "types") || expanded.subpath === "." && typeof manifest.types === "string" || !native && files.includes(declaration);
|
|
13640
|
+
const context = contexts.get(expanded.subpath);
|
|
13525
13641
|
entries.push({
|
|
13526
13642
|
...expanded,
|
|
13527
13643
|
format,
|
|
13528
13644
|
runtime,
|
|
13645
|
+
...context ? { context } : {},
|
|
13529
13646
|
...native ? { typecheck } : {},
|
|
13530
13647
|
...asset ? {
|
|
13531
13648
|
asset: true,
|
|
@@ -13534,6 +13651,7 @@ function consumerEntries(manifest, files) {
|
|
|
13534
13651
|
});
|
|
13535
13652
|
}
|
|
13536
13653
|
}
|
|
13654
|
+
validateRuntimeContextEntries(manifest, files, entries, contexts);
|
|
13537
13655
|
for (const asset of assets) {
|
|
13538
13656
|
const matches = entries.filter((entry) => entry.subpath === asset && entry.runtime);
|
|
13539
13657
|
if (!matches.length || matches.some((entry) => !entry.target.startsWith("./") || entry.target.split(/[\\/]/u).includes("..") || !files.includes(entry.target.slice(2)))) throw new Error(`Runtime asset ${manifest.name}${asset.slice(1)} must name a packed JavaScript export.`);
|
|
@@ -13639,7 +13757,7 @@ function checkDependencyRanges(pkg, packages, results, expected) {
|
|
|
13639
13757
|
}
|
|
13640
13758
|
//#endregion
|
|
13641
13759
|
//#region src/commands/package-check/consumer/optional-peers.ts
|
|
13642
|
-
/**
|
|
13760
|
+
/** 显式安装可选集成和本批次必需 peer,避免包管理器使用 registry 旧包。 */
|
|
13643
13761
|
function consumerOptionalPeers(closure, localLocators) {
|
|
13644
13762
|
const peers = /* @__PURE__ */ new Map();
|
|
13645
13763
|
for (const { manifest, reference, name } of closure.references) {
|
|
@@ -13656,25 +13774,25 @@ function consumerOptionalPeers(closure, localLocators) {
|
|
|
13656
13774
|
peer.optional ||= manifest.peerDependenciesMeta?.[reference.alias]?.optional === true;
|
|
13657
13775
|
peers.set(reference.alias, peer);
|
|
13658
13776
|
}
|
|
13659
|
-
return Object.fromEntries([...peers].filter(([, peer]) => peer.optional).sort(([left], [right]) => left.localeCompare(right)).map(([alias, peer]) => {
|
|
13777
|
+
return Object.fromEntries([...peers].filter(([, peer]) => peer.optional || [...peer.names].some((name) => closure.known.has(name))).sort(([left], [right]) => left.localeCompare(right)).map(([alias, peer]) => {
|
|
13660
13778
|
if (peer.names.size !== 1) throw new Error(`Consumer peer alias ${alias} has conflicting package names.`);
|
|
13661
13779
|
const name = [...peer.names][0];
|
|
13662
|
-
if (!peer.registry) throw new Error(`Consumer
|
|
13780
|
+
if (!peer.registry) throw new Error(`Consumer peer ${alias} must declare a registry version range.`);
|
|
13663
13781
|
let alternatives = [""];
|
|
13664
13782
|
for (const range of peer.ranges) {
|
|
13665
13783
|
const normalized = validRange(range);
|
|
13666
|
-
if (!normalized) throw new Error(`Consumer
|
|
13784
|
+
if (!normalized) throw new Error(`Consumer peer ${alias} must declare a registry version range: ${range}.`);
|
|
13667
13785
|
alternatives = alternatives.flatMap((left) => normalized.split("||").map((right) => `${left} ${right}`.trim())).filter((range) => minVersion(range) !== null);
|
|
13668
13786
|
}
|
|
13669
13787
|
const intersection = [...new Set(alternatives)].join(" || ");
|
|
13670
|
-
if (!intersection) throw new Error(`Consumer
|
|
13788
|
+
if (!intersection) throw new Error(`Consumer peer ${alias} has incompatible declared ranges: ${peer.ranges.join(", ")}.`);
|
|
13671
13789
|
const range = (peer.ranges.find((candidate) => peer.ranges.every((other) => subset(candidate, other))) ?? intersection).trim().replace(/([<>=~^])\s+/gu, "$1");
|
|
13672
13790
|
const local = closure.known.get(name);
|
|
13673
13791
|
if (local) {
|
|
13674
|
-
if (!local.version || !satisfies(local.version, range)) throw new Error(`Consumer
|
|
13792
|
+
if (!local.version || !satisfies(local.version, range)) throw new Error(`Consumer peer ${alias} does not accept checked workspace package ${name}@${local.version}: ${range}.`);
|
|
13675
13793
|
if (localLocators) {
|
|
13676
13794
|
const locator = localLocators.get(name);
|
|
13677
|
-
if (!locator) throw new Error(`Consumer
|
|
13795
|
+
if (!locator) throw new Error(`Consumer peer ${alias} has no checked tarball for ${name}.`);
|
|
13678
13796
|
return [alias, locator];
|
|
13679
13797
|
}
|
|
13680
13798
|
return [alias, alias === name ? local.version : `npm:${name}@${local.version}`];
|
|
@@ -14069,13 +14187,8 @@ async function consumeTarball(pkg, packages, results, entries, directory, timeou
|
|
|
14069
14187
|
for (const [index, entry] of entries.entries()) {
|
|
14070
14188
|
const specifier = `${pkg.manifest.name}${entry.subpath === "." ? "" : entry.subpath.slice(1)}`;
|
|
14071
14189
|
if (entry.runtime) {
|
|
14072
|
-
const
|
|
14073
|
-
const command = await execute(process.execPath,
|
|
14074
|
-
"--input-type",
|
|
14075
|
-
entry.format === "esm" ? "module" : "commonjs",
|
|
14076
|
-
"--eval",
|
|
14077
|
-
source
|
|
14078
|
-
], directory, timeout, options);
|
|
14190
|
+
const args = await consumerRuntimeInvocation(entry, specifier, directory, installed);
|
|
14191
|
+
const command = await execute(process.execPath, args, directory, timeout, options);
|
|
14079
14192
|
result.commands.push(command);
|
|
14080
14193
|
if (command.exitCode !== 0) result.diagnostics.push({
|
|
14081
14194
|
source: "node",
|
|
@@ -15397,13 +15510,7 @@ async function checkInstalledEntries(manifest, files, installed, directory, run,
|
|
|
15397
15510
|
for (const [index, entry] of entries.entries()) {
|
|
15398
15511
|
const specifier = `${manifest.name}${entry.subpath === "." ? "" : entry.subpath.slice(1)}`;
|
|
15399
15512
|
if (entry.runtime) {
|
|
15400
|
-
|
|
15401
|
-
await run(process.execPath, [
|
|
15402
|
-
"--input-type",
|
|
15403
|
-
entry.format === "esm" ? "module" : "commonjs",
|
|
15404
|
-
"--eval",
|
|
15405
|
-
source
|
|
15406
|
-
]);
|
|
15513
|
+
await run(process.execPath, await consumerRuntimeInvocation(entry, specifier, directory, installed));
|
|
15407
15514
|
if (entry.asset) await run(process.execPath, ["--check", path$1.resolve(installed, entry.target)]);
|
|
15408
15515
|
}
|
|
15409
15516
|
if (checkTypes && entry.typecheck !== false) {
|
|
@@ -15768,7 +15875,7 @@ async function nightlyContext(options, config) {
|
|
|
15768
15875
|
}
|
|
15769
15876
|
//#endregion
|
|
15770
15877
|
//#region src/commands/release/nightly/process.ts
|
|
15771
|
-
function nightlyCommand(report, options, executable, args) {
|
|
15878
|
+
function nightlyCommand(report, options, executable, args, timeout = 6e5) {
|
|
15772
15879
|
const result = (options.spawn ?? crossSpawn.sync)(executable, args, {
|
|
15773
15880
|
cwd: options.cwd,
|
|
15774
15881
|
env: {
|
|
@@ -15784,7 +15891,7 @@ function nightlyCommand(report, options, executable, args) {
|
|
|
15784
15891
|
"pipe",
|
|
15785
15892
|
"pipe"
|
|
15786
15893
|
],
|
|
15787
|
-
timeout
|
|
15894
|
+
timeout,
|
|
15788
15895
|
maxBuffer: 16777216
|
|
15789
15896
|
});
|
|
15790
15897
|
const stdout = result.stdout?.toString() ?? "";
|
|
@@ -15798,7 +15905,10 @@ function nightlyCommand(report, options, executable, args) {
|
|
|
15798
15905
|
stdout: stdout.slice(-8e3),
|
|
15799
15906
|
stderr: stderr.slice(-8e3)
|
|
15800
15907
|
});
|
|
15801
|
-
if (result.error || result.status !== 0)
|
|
15908
|
+
if (result.error || result.status !== 0) {
|
|
15909
|
+
const reason = result.error && "code" in result.error && result.error.code === "ETIMEDOUT" ? `timed out after ${timeout} ms (${result.error.message})` : result.error?.message ?? (stderr.trim().slice(-2e3) || `exit code ${result.status}`);
|
|
15910
|
+
throw new Error(`Nightly ${executable} ${args.join(" ")} failed: ${reason}`);
|
|
15911
|
+
}
|
|
15802
15912
|
return stdout.trim();
|
|
15803
15913
|
}
|
|
15804
15914
|
//#endregion
|
|
@@ -16149,7 +16259,7 @@ async function nightly(options, execute) {
|
|
|
16149
16259
|
cwd: report.source,
|
|
16150
16260
|
env
|
|
16151
16261
|
}, (command, args, settings) => {
|
|
16152
|
-
nightlyCommand(report, settings, command, args);
|
|
16262
|
+
nightlyCommand(report, settings, command, args, config.qualityTimeoutMs ?? 27e5);
|
|
16153
16263
|
});
|
|
16154
16264
|
assertSnapshotSource(snapshotOptions);
|
|
16155
16265
|
await checkpointNightly(report);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { knipRoot } from "./plan-
|
|
1
|
+
import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-_wD6MeHm.mjs";
|
|
3
|
+
import { knipRoot } from "./plan-BSD_7Zq0.mjs";
|
|
4
4
|
//#region src/commands/check/knip/config.ts
|
|
5
5
|
/** Return native settings for manual merging; existing Knip config always remains authoritative. */
|
|
6
6
|
async function getKnipConfigurationSuggestions(cwd) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { St as localize, jt as fs$1 } from "./workspace-tasks-
|
|
2
|
-
import { d as logger } from "./execute-
|
|
3
|
-
import { $t as createTemplateCatalog, Jt as resolveCreateNewProjectPlan, Kt as createNewProject, qt as defaultTemplate, tn as loadTemplateCatalogContext } from "./commands-
|
|
1
|
+
import { St as localize, jt as fs$1 } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { d as logger } from "./execute-erp9jUMf.mjs";
|
|
3
|
+
import { $t as createTemplateCatalog, Jt as resolveCreateNewProjectPlan, Kt as createNewProject, qt as defaultTemplate, tn as loadTemplateCatalogContext } from "./commands-XgXSc1Oe.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-
|
|
3
|
-
import { t as scanDependencies } from "./scan-
|
|
4
|
-
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-
|
|
2
|
+
import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-CRErTv9q.mjs";
|
|
3
|
+
import { t as scanDependencies } from "./scan-Bf5v7YIt.mjs";
|
|
4
|
+
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-06DVgAlw.mjs";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
|
6
6
|
//#region src/commands/deps/apply.ts
|
|
7
7
|
async function applyDependencyFixPlan(cwd, plan) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as localize, jt as fs } from "./workspace-tasks-
|
|
2
|
-
import { d as logger, t as runCheckWithReport } from "./execute-
|
|
1
|
+
import { St as localize, jt as fs } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { d as logger, t as runCheckWithReport } from "./execute-erp9jUMf.mjs";
|
|
3
3
|
import { t as formatAffectedCheckPlan } from "./cli.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as signalExitCode, J as getWorkspaceGraph, St as localize, V as executeCheckTask, Z as getWorkspaceImpact, jt as fs$1, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-
|
|
2
|
-
import { d as loadMonorepoConfig } from "./tsconfig-
|
|
1
|
+
import { H as signalExitCode, J as getWorkspaceGraph, St as localize, V as executeCheckTask, Z as getWorkspaceImpact, jt as fs$1, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { d as loadMonorepoConfig } from "./tsconfig-C9-YXb3u.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { createConsola } from "consola";
|
|
5
5
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as localize } from "./workspace-tasks-
|
|
1
|
+
import { St as localize } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
2
|
//#region src/commands/check/cache/format.ts
|
|
3
3
|
function label(value, markdown) {
|
|
4
4
|
return markdown ? value.replace(/[\\`*_{}[\]()#+.!|<>~-]/gu, "\\$&") : value;
|
|
@@ -1465,6 +1465,8 @@ interface ReleaseNightlyConfig {
|
|
|
1465
1465
|
provider?: NightlyProvider;
|
|
1466
1466
|
/** Five-field UTC cron. Omit for manual nightly only; synchronize with repo upgrade. */
|
|
1467
1467
|
schedule?: string;
|
|
1468
|
+
/** Timeout for each nightly quality script and verify hook, in positive safe integer milliseconds. @default 2700000 */
|
|
1469
|
+
qualityTimeoutMs?: number;
|
|
1468
1470
|
}
|
|
1469
1471
|
interface ReleaseCommandConfig {
|
|
1470
1472
|
nightly?: ReleaseNightlyConfig;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as UpgradeKeepDecision, $n as DependencyAdmissionConfig, $r as DependencySection, $t as PublicApiUpdatePlan, A as WorkspaceMoveOptions, An as CodeownersReport, Ar as OrganizationPresetReference, At as EslintToolingConfig, B as AiCommandConfig, Bn as InstallSecurityOptions, Br as generateAgenticTemplates, Bt as ProjectReferencesOperation, C as MonorepoVitestConfigOverrides, Cn as WorkspacePackageSummary, Cr as ConfigDiagnostic, Ct as DocsCloudflareWorkersTarget, D as ConfigValues, Dn as CodeownersDiagnostic, Dr as OrganizationPresetDiagnostic, Dt as DocsScriptDeploymentTarget, E as MonorepoVitestProjectConfigResult, En as CodeownersConfig, Er as OrganizationPresetAsset, Et as DocsReadinessConfig, F as WorkspaceRemovalEntry, Fn as normalizeInitToolingTargets, Fr as AgenticTemplateTask, Ft as VitestToolingConfig, G as MonorepoConfig, Gn as DoctorReport, Gr as DependencyConsistencyGroup, Gt as GitHooksInstallResult, H as CreateCommandConfig, Hn as InstallSecurityReport, Hr as CliOpts, Ht as GitHookCheck, I as WorkspaceRemovalFile, In as initToolingTargets, Ir as GenerateAgenticTemplateOptions, It as ProjectReferencesApplyResult, J as UpgradeApplyResult, Jn as DoctorSuppressionReport, Jr as DependencyFixPlan, Jt as PublicApiEntryConfig, K as UpgradeCommandConfig, Kn as DoctorStatus, Kr as DependencyFileChange, Kt as PublicApiConfig, L as WorkspaceRemovalOptions, Ln as InstallBuildDecision, Lr as createTimestampFolderName, Lt as ProjectReferencesCheck, M as WorkspaceMoveResult, Mn as init, Mr as OrganizationPresetSource, Mt as ToolingConfig, N as WorkspaceMoveReview, Nn as initMetadata, Nr as OrganizationPresetTemplate, Nt as TsconfigToolingConfig, O as SimpleGit, On as CodeownersOptions, Or as OrganizationPresetLayer, Ot as DocsSiteConfig, P as WorkspaceRemovalBlocker, Pn as initTooling, Pr as AgenticTemplateFormat, Pt as VitestProjectToolingConfig, Q as UpgradeInput, Qn as AdmissionDeclaration, Qr as DependencyReport, Qt as PublicApiReport, R as WorkspaceRemovalPlan, Rn as InstallPolicyKey, Rr as defaultAgenticBaseDir, Rt as ProjectReferencesConfig, S as MonorepoVitestConfigOptions, Sn as WorkspacePackageManifest, Sr as TemplateCatalogEntry, St as DocsChannel, T as MonorepoVitestProjectConfigOptions, Tn as WorkspacePackageWithJsonPath, Tr as ConfigValueSource, Tt as DocsDeploymentTarget, U as InitCommandConfig, Un as InstallSecuritySetting, Ur as DependenciesCommandConfig, Ut as GitHooksConfig, V as CreateChoiceOption, Vn as InstallSecurityPresetPlan, Vr as loadAgenticTasks, Vt as ProjectReferencesPlan, W as MirrorCommandConfig, Wn as DoctorCheck, Wr as DependencyApplyResult, Wt as GitHooksInstallOptions, X as UpgradeFilePlan, Xn as DoctorOptions, Xr as DependencyOccurrence, Xt as PublicApiOptions, Y as UpgradeBaselineChange, Yn as DoctorCommandConfig, Yr as DependencyGroupStatus, Yt as PublicApiEntryReport, Z as UpgradeFileStatus, Zn as DoctorSuppression, Zr as DependencyProtocol, Zt as PublicApiPackageConfig, _ as DefineVitestProjectConfigOptions, _n as WorkspaceImpactResult, _r as resolveTemplateCatalog, _t as EnvCacheOptions, a as createMonorepoTsconfig, an as WorkspaceBoundaryException, ar as applyCreateNewProjectPlan, at as UpgradePlan, b as MonorepoStylelintConfig, bn as WorkspaceData, br as TemplateCatalog, bt as EnvCacheTask, c as createMonorepoCommitlintConfig, cn as WorkspaceBoundarySelector, cr as CreateNewProjectPlan, ct as ReleaseAfterPublishHookConfig, d as defineCommitlintConfig, dn as WorkspaceGraphDiagnostic, dr as ResolvedTemplateSource, dt as ReleaseRegistryConfig, ei as DependencyVersionGroup, en as PublicApiUpdateResult, er as DependencyAdmissionException, et as UpgradeMergeDetails, f as defineEslintConfig, fn as WorkspaceGraphEdge, fr as TemplateSourceOptions, ft as ReleaseBranchRule, g as DefineVitestConfigOptions, gn as WorkspaceImpactOptions, gr as templateMap, gt as EnvCacheFinding, h as DefineEslintConfigOptions, hn as WorkspaceGraphOptions, hr as getTemplateMap, ht as EnvCacheEvidence, i as defineVitestProjectConfig, in as WorkspaceBoundariesReport, ir as DependencyAdmissionRule, it as UpgradeOverrideFinding, j as WorkspaceMovePlan, jn as WorkspaceOwnership, jr as OrganizationPresetResolution, jt as StylelintToolingConfig, k as SimpleGitOptions, kn as CodeownersPlan, kr as OrganizationPresetManifest, kt as CommitlintToolingConfig, l as createMonorepoEslintConfig, ln as WorkspaceDependencyType, lr as resolveCreateNewProjectPlan, lt as ReleaseCommandConfig, m as DefineConfigOptions, mn as WorkspaceGraphNode, mr as getCreateChoices, mt as EnvCacheConfig, n as createMonorepoVitestProjectConfig, nn as BoundarySeverity, nr as DependencyAdmissionOptions, nt as UpgradeMigrationsPlan, o as defineTsconfigConfig, on as WorkspaceBoundaryFinding, or as createNewProject, ot as UpgradeWorkspacePolicy, p as defineStylelintConfig, pn as WorkspaceGraphFilter, pr as TemplateSourceRequest, pt as ReleaseBranchesConfig, q as UpgradeApplyOptions, qn as DoctorSummary, qr as DependencyFixOptions, qt as PublicApiDiagnostic, r as defineVitestConfig, rn as WorkspaceBoundariesConfig, rr as DependencyAdmissionReport, rt as UpgradeOptions, s as loadMonorepoToolingConfig, sn as WorkspaceBoundaryRule, sr as CreateNewProjectOptions, st as NightlyProvider, t as createMonorepoVitestConfig, tn as CleanCommandConfig, tr as DependencyAdmissionFinding, tt as UpgradeMigrationStep, u as createMonorepoStylelintConfig, un as WorkspaceGraph, ur as resolveRemoteTemplateSource, ut as ReleaseNightlyConfig, v as MonorepoCommitlintConfig, vn as WorkspaceWhyResult, vr as CreateTemplateDefinition, vt as EnvCacheReport, w as MonorepoVitestConfigResult, wn as WorkspacePackageSummaryData, wr as ConfigSourceLayer, wt as DocsCommandConfig, x as MonorepoTsconfig, xn as WorkspacePackage, xr as TemplateCatalogDiagnostic, xt as EnvCacheVariable, y as MonorepoEslintConfig, yn as GetWorkspacePackagesOptions, yr as ResolveTemplateCatalogOptions, yt as EnvCacheSuppression, z as WorkspaceRemovalResult, zn as InstallSecurityExpectations, zr as generateAgenticTemplate, zt as ProjectReferencesDiagnostic } from "./index-
|
|
1
|
+
import { $ as UpgradeKeepDecision, $n as DependencyAdmissionConfig, $r as DependencySection, $t as PublicApiUpdatePlan, A as WorkspaceMoveOptions, An as CodeownersReport, Ar as OrganizationPresetReference, At as EslintToolingConfig, B as AiCommandConfig, Bn as InstallSecurityOptions, Br as generateAgenticTemplates, Bt as ProjectReferencesOperation, C as MonorepoVitestConfigOverrides, Cn as WorkspacePackageSummary, Cr as ConfigDiagnostic, Ct as DocsCloudflareWorkersTarget, D as ConfigValues, Dn as CodeownersDiagnostic, Dr as OrganizationPresetDiagnostic, Dt as DocsScriptDeploymentTarget, E as MonorepoVitestProjectConfigResult, En as CodeownersConfig, Er as OrganizationPresetAsset, Et as DocsReadinessConfig, F as WorkspaceRemovalEntry, Fn as normalizeInitToolingTargets, Fr as AgenticTemplateTask, Ft as VitestToolingConfig, G as MonorepoConfig, Gn as DoctorReport, Gr as DependencyConsistencyGroup, Gt as GitHooksInstallResult, H as CreateCommandConfig, Hn as InstallSecurityReport, Hr as CliOpts, Ht as GitHookCheck, I as WorkspaceRemovalFile, In as initToolingTargets, Ir as GenerateAgenticTemplateOptions, It as ProjectReferencesApplyResult, J as UpgradeApplyResult, Jn as DoctorSuppressionReport, Jr as DependencyFixPlan, Jt as PublicApiEntryConfig, K as UpgradeCommandConfig, Kn as DoctorStatus, Kr as DependencyFileChange, Kt as PublicApiConfig, L as WorkspaceRemovalOptions, Ln as InstallBuildDecision, Lr as createTimestampFolderName, Lt as ProjectReferencesCheck, M as WorkspaceMoveResult, Mn as init, Mr as OrganizationPresetSource, Mt as ToolingConfig, N as WorkspaceMoveReview, Nn as initMetadata, Nr as OrganizationPresetTemplate, Nt as TsconfigToolingConfig, O as SimpleGit, On as CodeownersOptions, Or as OrganizationPresetLayer, Ot as DocsSiteConfig, P as WorkspaceRemovalBlocker, Pn as initTooling, Pr as AgenticTemplateFormat, Pt as VitestProjectToolingConfig, Q as UpgradeInput, Qn as AdmissionDeclaration, Qr as DependencyReport, Qt as PublicApiReport, R as WorkspaceRemovalPlan, Rn as InstallPolicyKey, Rr as defaultAgenticBaseDir, Rt as ProjectReferencesConfig, S as MonorepoVitestConfigOptions, Sn as WorkspacePackageManifest, Sr as TemplateCatalogEntry, St as DocsChannel, T as MonorepoVitestProjectConfigOptions, Tn as WorkspacePackageWithJsonPath, Tr as ConfigValueSource, Tt as DocsDeploymentTarget, U as InitCommandConfig, Un as InstallSecuritySetting, Ur as DependenciesCommandConfig, Ut as GitHooksConfig, V as CreateChoiceOption, Vn as InstallSecurityPresetPlan, Vr as loadAgenticTasks, Vt as ProjectReferencesPlan, W as MirrorCommandConfig, Wn as DoctorCheck, Wr as DependencyApplyResult, Wt as GitHooksInstallOptions, X as UpgradeFilePlan, Xn as DoctorOptions, Xr as DependencyOccurrence, Xt as PublicApiOptions, Y as UpgradeBaselineChange, Yn as DoctorCommandConfig, Yr as DependencyGroupStatus, Yt as PublicApiEntryReport, Z as UpgradeFileStatus, Zn as DoctorSuppression, Zr as DependencyProtocol, Zt as PublicApiPackageConfig, _ as DefineVitestProjectConfigOptions, _n as WorkspaceImpactResult, _r as resolveTemplateCatalog, _t as EnvCacheOptions, a as createMonorepoTsconfig, an as WorkspaceBoundaryException, ar as applyCreateNewProjectPlan, at as UpgradePlan, b as MonorepoStylelintConfig, bn as WorkspaceData, br as TemplateCatalog, bt as EnvCacheTask, c as createMonorepoCommitlintConfig, cn as WorkspaceBoundarySelector, cr as CreateNewProjectPlan, ct as ReleaseAfterPublishHookConfig, d as defineCommitlintConfig, dn as WorkspaceGraphDiagnostic, dr as ResolvedTemplateSource, dt as ReleaseRegistryConfig, ei as DependencyVersionGroup, en as PublicApiUpdateResult, er as DependencyAdmissionException, et as UpgradeMergeDetails, f as defineEslintConfig, fn as WorkspaceGraphEdge, fr as TemplateSourceOptions, ft as ReleaseBranchRule, g as DefineVitestConfigOptions, gn as WorkspaceImpactOptions, gr as templateMap, gt as EnvCacheFinding, h as DefineEslintConfigOptions, hn as WorkspaceGraphOptions, hr as getTemplateMap, ht as EnvCacheEvidence, i as defineVitestProjectConfig, in as WorkspaceBoundariesReport, ir as DependencyAdmissionRule, it as UpgradeOverrideFinding, j as WorkspaceMovePlan, jn as WorkspaceOwnership, jr as OrganizationPresetResolution, jt as StylelintToolingConfig, k as SimpleGitOptions, kn as CodeownersPlan, kr as OrganizationPresetManifest, kt as CommitlintToolingConfig, l as createMonorepoEslintConfig, ln as WorkspaceDependencyType, lr as resolveCreateNewProjectPlan, lt as ReleaseCommandConfig, m as DefineConfigOptions, mn as WorkspaceGraphNode, mr as getCreateChoices, mt as EnvCacheConfig, n as createMonorepoVitestProjectConfig, nn as BoundarySeverity, nr as DependencyAdmissionOptions, nt as UpgradeMigrationsPlan, o as defineTsconfigConfig, on as WorkspaceBoundaryFinding, or as createNewProject, ot as UpgradeWorkspacePolicy, p as defineStylelintConfig, pn as WorkspaceGraphFilter, pr as TemplateSourceRequest, pt as ReleaseBranchesConfig, q as UpgradeApplyOptions, qn as DoctorSummary, qr as DependencyFixOptions, qt as PublicApiDiagnostic, r as defineVitestConfig, rn as WorkspaceBoundariesConfig, rr as DependencyAdmissionReport, rt as UpgradeOptions, s as loadMonorepoToolingConfig, sn as WorkspaceBoundaryRule, sr as CreateNewProjectOptions, st as NightlyProvider, t as createMonorepoVitestConfig, tn as CleanCommandConfig, tr as DependencyAdmissionFinding, tt as UpgradeMigrationStep, u as createMonorepoStylelintConfig, un as WorkspaceGraph, ur as resolveRemoteTemplateSource, ut as ReleaseNightlyConfig, v as MonorepoCommitlintConfig, vn as WorkspaceWhyResult, vr as CreateTemplateDefinition, vt as EnvCacheReport, w as MonorepoVitestConfigResult, wn as WorkspacePackageSummaryData, wr as ConfigSourceLayer, wt as DocsCommandConfig, x as MonorepoTsconfig, xn as WorkspacePackage, xr as TemplateCatalogDiagnostic, xt as EnvCacheVariable, y as MonorepoEslintConfig, yn as GetWorkspacePackagesOptions, yr as ResolveTemplateCatalogOptions, yt as EnvCacheSuppression, z as WorkspaceRemovalResult, zn as InstallSecurityExpectations, zr as generateAgenticTemplate, zt as ProjectReferencesDiagnostic } from "./index-BBYRSLAi.mjs";
|
|
2
2
|
import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
4
4
|
import crypto from "node:crypto";
|
|
@@ -2111,6 +2111,19 @@ interface PackageCheckReport {
|
|
|
2111
2111
|
attw: string;
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
|
+
/** 公开入口所需的隔离运行环境或精确的平台保护错误。 */
|
|
2115
|
+
type ConsumerRuntimeContext = 'vitest' | {
|
|
2116
|
+
kind: 'expected-error';
|
|
2117
|
+
name: 'Error';
|
|
2118
|
+
message: string;
|
|
2119
|
+
};
|
|
2120
|
+
/** package.json 中 repoctl.packageCheck 的公开配置合同。 */
|
|
2121
|
+
interface PackageCheckManifestOptions {
|
|
2122
|
+
/** 只做解析与语法检查的精确 JavaScript 资源导出。 */
|
|
2123
|
+
runtimeAssets?: string[];
|
|
2124
|
+
/** 在对应环境中真实执行的精确 ESM 导出。 */
|
|
2125
|
+
runtimeContexts?: Record<string, ConsumerRuntimeContext>;
|
|
2126
|
+
}
|
|
2114
2127
|
//#endregion
|
|
2115
2128
|
//#region src/commands/package-check/index.d.ts
|
|
2116
2129
|
/** Build, pack, and consume actual publish artifacts without publishing or versioning. */
|
|
@@ -3195,4 +3208,4 @@ export declare function escapeStringRegexp(str: string): string;
|
|
|
3195
3208
|
*/
|
|
3196
3209
|
export declare function isMatch(str: string, arr: RegExp[]): boolean;
|
|
3197
3210
|
//#endregion
|
|
3198
|
-
export { type AdmissionDeclaration, type AffectedCheckCommand, type AffectedCheckMatrix, type AffectedCheckMatrixJob, type AffectedCheckMatrixOptions, type AffectedCheckOptions, type AffectedCheckPlan, type AffectedCheckSettings, type AffectedFallback, type AffectedFile, type AffectedGitRange, type AffectedPackage, type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type ArtifactFile, type AutoChangesetApplyOptions, type AutoChangesetApproval, type AutoChangesetDecision, type AutoChangesetDependencyField, type AutoChangesetLevel, type AutoChangesetOptions, type AutoChangesetPolicy, type AutoChangesetReport, type AutoChangesetRevision, type AutoChangesetWorkflowOptions, type BoundarySeverity, type CheckExecutionOptions, type CheckExecutionReport, type CheckExecutionStatus, type CheckExecutionTask, type CheckTemplatesOptions, type CleanCommandConfig, CliOpts, type CodeownersConfig, type CodeownersDiagnostic, type CodeownersOptions, type CodeownersPlan, type CodeownersReport, type CommitMsgVerifyOptions, type CommitlintToolingConfig, type ConfigDiagnostic, type ConfigInspection, ConfigSourceLayer, ConfigValueSource, type ConfigValues, type ConsumerApplicability, type ConsumerHost, type ConsumerPackageApplicability, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, type CreateTemplateDefinition, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, DependenciesCommandConfig, type DependencyAdmissionConfig, type DependencyAdmissionException, type DependencyAdmissionFinding, type DependencyAdmissionOptions, type DependencyAdmissionReport, type DependencyAdmissionRule, DependencyApplyResult, DependencyConsistencyGroup, DependencyFileChange, DependencyFixOptions, DependencyFixPlan, DependencyGroupStatus, DependencyOccurrence, DependencyProtocol, DependencyReport, DependencySection, DependencyVersionGroup, DocsChannel, DocsCloudflareWorkersTarget, DocsCommandConfig, type DocsDeploymentPlan, type DocsDeploymentReport, type DocsDeploymentResult, type DocsDeploymentStage, type DocsDeploymentStageKey, DocsDeploymentTarget, type DocsOptions, type DocsProviderReceipt, DocsReadinessConfig, DocsScriptDeploymentTarget, DocsSiteConfig, type DocsStateStore, type DoctorCheck, type DoctorCommandConfig, type DoctorFixPlan, type DoctorFixResult, type DoctorOptions, type DoctorReport, type DoctorStatus, type DoctorSummary, type DoctorSuppression, type DoctorSuppressionReport, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvCacheConfig, type EnvCacheEvidence, type EnvCacheFinding, type EnvCacheOptions, type EnvCacheReport, type EnvCacheSuppression, type EnvCacheTask, type EnvCacheVariable, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, type EslintToolingConfig, type FreezeSnapshotSourceOptions, type GenerateAgenticTemplateOptions, type GenerateFile, type GenerateOptions, type GeneratePlan, type GenerateResult, type GeneratorName, GetWorkspacePackagesOptions, type GitHookCheck, type GitHooksConfig, type GitHooksInstallOptions, type GitHooksInstallResult, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, type GitUrlMetadata, InitCommandConfig, type InstallBuildDecision, type InstallPolicyKey, type InstallSecurityExpectations, type InstallSecurityOptions, type InstallSecurityPresetPlan, type InstallSecurityReport, type InstallSecuritySetting, type MaintenanceFile, type MaintenancePresetChange, type MaintenancePresetUpgrade, type MaintenanceUpgradeOptions, type MaintenanceUpgradeReport, type MaintenanceVersionChange, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type NightlyConsumerReport, type NightlyOptions, type NightlyPackage, type NightlyProvider, type NightlyReport, OrganizationPresetAsset, type OrganizationPresetAssetPlan, type OrganizationPresetAssetResult, OrganizationPresetDiagnostic, OrganizationPresetLayer, OrganizationPresetManifest, OrganizationPresetReference, OrganizationPresetResolution, OrganizationPresetSource, OrganizationPresetTemplate, type PackageCheckCommand, type PackageCheckDiagnostic, type PackageCheckOptions, type PackageCheckReport, type PackageCheckResult, type PeerCheckStatus, type PeerCompatibilityCheck, type PeerCompatibilityReport, type PlaywrightCapabilityOptions, type PlaywrightInteraction, type PreCommitVerifyOptions, type PrePushVerifyOptions, type PrepareSnapshotOptions, type PreparedSnapshot, type PreparedSnapshotConsumerOptions, type PreparedSnapshotConsumerReport, type PreparedSnapshotManifest, type PreparedSnapshotPublishOptions, type PreparedSnapshotPublishReport, ProjectReferencesApplyResult, ProjectReferencesCheck, ProjectReferencesConfig, ProjectReferencesDiagnostic, ProjectReferencesOperation, ProjectReferencesPlan, type PublicApiConfig, type PublicApiDiagnostic, type PublicApiEntryConfig, type PublicApiEntryReport, type PublicApiOptions, type PublicApiPackageConfig, type PublicApiReport, type PublicApiUpdatePlan, type PublicApiUpdateResult, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseBranchRule, type ReleaseBranchesConfig, type ReleaseCiOptions, type ReleaseCiStage, type StageReceipt as ReleaseCiStageResult, type ReleaseCommandConfig, type ReleaseCompletionRecord, type ReleaseLifecycleState, type ReleaseNightlyConfig, type ReleaseOidcArtifactAuditOptions, type ReleaseOidcAuditOptions, type ReleaseOidcAuditPackage, type ReleaseOidcAuditReport, type ReleaseOidcPackageResult, type ReleasePlan, type ReleasePlanOptions, type ReleasePlanPackage, type ReleasePreparationGeneratedFile, type ReleasePreparationGeneratedFileContext, type ReleasePreparationPolicy, type ReleasePreparationValidationFile, type ReleasePreparationValidationOptions, type ReleasePreparationValidationReport, type ReleaseRegistryConfig, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type ResolveTemplateCatalogOptions, type ResolvedTemplateRemoteSource, type ResolvedTemplateSource, type SimpleGit, type SimpleGitOptions, type SkillTarget, type SnapshotBuildPackage, type SnapshotBuildPlan, type SnapshotBuildPlanOptions, type SnapshotDependency, type SnapshotIdentity, type SnapshotOptions, type SnapshotPackage, type SnapshotPreparationContext, type SnapshotPreparationReceipt, type SnapshotPreparationResult, type SnapshotReferenceGitlink, type SnapshotReport, type SnapshotRunEvidence, type SnapshotSource, type SnapshotWorkflowOptions, type SnapshotWorkflowPolicy, type SnapshotWorkflows, type StagedTypecheckOptions, type StorybookArgs, type StorybookCapabilityOptions, type StylelintToolingConfig, type SyncSkillsOptions, type TemplateCatalog, type TemplateCatalogDiagnostic, type TemplateCatalogEntry, type TemplateDriftCollection, type TemplateDriftFile, type TemplateDriftOptions, type TemplateDriftOwner, type TemplateDriftRegistry, type TemplateDriftReport, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, type TemplateInstance, type TemplateInstanceBaseline, type TemplateInstanceInfo, type TemplateInstanceRegistry, type TemplateInstanceSource, type TemplateLinkOptions, type TemplateLinkPlan, type TemplateRemoteSource, type TemplateSourceOptions, type TemplateSourceRequest, type TemplateUpgradeChange, type TemplateUpgradeEntry, type TemplateUpgradeOptions, type TemplateUpgradePlan, type TemplateUpgradeRecoveryResult, type TemplateUpgradeResult, type TemplateValidationDiagnostic, type TemplateValidationOptions, type TemplateValidationParameterSet, type TemplateValidationPlan, type TemplateValidationReport, type TemplateValidationSample, type TemplateValidationStage, type TemplateValidationStep, type TemplateVersionComparison, type TemplateVersionEvidence, type ToolingCapability, type ToolingCapabilityFile, type ToolingCapabilityOptions, type ToolingCapabilityPlan, type ToolingCapabilityResult, type ToolingConfig, type TsconfigToolingConfig, type TurboAnalysisLimitation, type TurboAnalysisOptions, type TurboCriticalPath, type TurboHashEvidence, type TurboRunAnalysis, type TurboTaskAnalysis, UpgradeApplyOptions, UpgradeApplyResult, UpgradeBaselineChange, UpgradeCommandConfig, UpgradeFilePlan, UpgradeFileStatus, UpgradeInput, UpgradeKeepDecision, UpgradeMergeDetails, UpgradeMigrationStep, UpgradeMigrationsPlan, UpgradeOptions, UpgradeOverrideFinding, UpgradePlan, UpgradeWorkspacePolicy, type VerifiedSnapshotRun, type VerifyCommandOptions, type VerifySnapshotRunOptions, type VitestProjectToolingConfig, type VitestToolingConfig, type WorkspaceArtifactApplyOptions, type WorkspaceArtifactOptions, type WorkspaceArtifactPlan, type WorkspaceArtifactResult, type WorkspaceBoundariesConfig, type WorkspaceBoundariesReport, type WorkspaceBoundaryException, type WorkspaceBoundaryFinding, type WorkspaceBoundaryRule, type WorkspaceBoundarySelector, WorkspaceData, type WorkspaceDependencyType, type WorkspaceGraph, type WorkspaceGraphDiagnostic, type WorkspaceGraphEdge, type WorkspaceGraphFilter, type WorkspaceGraphNode, type WorkspaceGraphOptions, type WorkspaceImpactOptions, type WorkspaceImpactResult, type WorkspaceLocation, WorkspaceMoveOptions, WorkspaceMovePlan, WorkspaceMoveResult, WorkspaceMoveReview, type WorkspaceOwnership, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, WorkspaceRemovalBlocker, WorkspaceRemovalEntry, WorkspaceRemovalFile, WorkspaceRemovalOptions, WorkspaceRemovalPlan, WorkspaceRemovalResult, type WorkspaceTask, type WorkspaceTaskCatalog, type WorkspaceTaskOptions, type WorkspaceTaskPackage, type WorkspaceWhyResult, applyCreateNewProjectPlan, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, listTemplateInstances, loadAgenticTasks, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, normalizeInitToolingTargets, name as packageName, rebuildTemplateInstanceBaseline, recoverUnpublished, relocateTemplateInstance, resolveCreateNewProjectPlan, resolveRemoteTemplateSource, resolveTemplateCatalog, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
|
3211
|
+
export { type AdmissionDeclaration, type AffectedCheckCommand, type AffectedCheckMatrix, type AffectedCheckMatrixJob, type AffectedCheckMatrixOptions, type AffectedCheckOptions, type AffectedCheckPlan, type AffectedCheckSettings, type AffectedFallback, type AffectedFile, type AffectedGitRange, type AffectedPackage, type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type ArtifactFile, type AutoChangesetApplyOptions, type AutoChangesetApproval, type AutoChangesetDecision, type AutoChangesetDependencyField, type AutoChangesetLevel, type AutoChangesetOptions, type AutoChangesetPolicy, type AutoChangesetReport, type AutoChangesetRevision, type AutoChangesetWorkflowOptions, type BoundarySeverity, type CheckExecutionOptions, type CheckExecutionReport, type CheckExecutionStatus, type CheckExecutionTask, type CheckTemplatesOptions, type CleanCommandConfig, CliOpts, type CodeownersConfig, type CodeownersDiagnostic, type CodeownersOptions, type CodeownersPlan, type CodeownersReport, type CommitMsgVerifyOptions, type CommitlintToolingConfig, type ConfigDiagnostic, type ConfigInspection, ConfigSourceLayer, ConfigValueSource, type ConfigValues, type ConsumerApplicability, type ConsumerHost, type ConsumerPackageApplicability, type ConsumerRuntimeContext, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, type CreateTemplateDefinition, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, DependenciesCommandConfig, type DependencyAdmissionConfig, type DependencyAdmissionException, type DependencyAdmissionFinding, type DependencyAdmissionOptions, type DependencyAdmissionReport, type DependencyAdmissionRule, DependencyApplyResult, DependencyConsistencyGroup, DependencyFileChange, DependencyFixOptions, DependencyFixPlan, DependencyGroupStatus, DependencyOccurrence, DependencyProtocol, DependencyReport, DependencySection, DependencyVersionGroup, DocsChannel, DocsCloudflareWorkersTarget, DocsCommandConfig, type DocsDeploymentPlan, type DocsDeploymentReport, type DocsDeploymentResult, type DocsDeploymentStage, type DocsDeploymentStageKey, DocsDeploymentTarget, type DocsOptions, type DocsProviderReceipt, DocsReadinessConfig, DocsScriptDeploymentTarget, DocsSiteConfig, type DocsStateStore, type DoctorCheck, type DoctorCommandConfig, type DoctorFixPlan, type DoctorFixResult, type DoctorOptions, type DoctorReport, type DoctorStatus, type DoctorSummary, type DoctorSuppression, type DoctorSuppressionReport, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvCacheConfig, type EnvCacheEvidence, type EnvCacheFinding, type EnvCacheOptions, type EnvCacheReport, type EnvCacheSuppression, type EnvCacheTask, type EnvCacheVariable, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, type EslintToolingConfig, type FreezeSnapshotSourceOptions, type GenerateAgenticTemplateOptions, type GenerateFile, type GenerateOptions, type GeneratePlan, type GenerateResult, type GeneratorName, GetWorkspacePackagesOptions, type GitHookCheck, type GitHooksConfig, type GitHooksInstallOptions, type GitHooksInstallResult, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, type GitUrlMetadata, InitCommandConfig, type InstallBuildDecision, type InstallPolicyKey, type InstallSecurityExpectations, type InstallSecurityOptions, type InstallSecurityPresetPlan, type InstallSecurityReport, type InstallSecuritySetting, type MaintenanceFile, type MaintenancePresetChange, type MaintenancePresetUpgrade, type MaintenanceUpgradeOptions, type MaintenanceUpgradeReport, type MaintenanceVersionChange, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type NightlyConsumerReport, type NightlyOptions, type NightlyPackage, type NightlyProvider, type NightlyReport, OrganizationPresetAsset, type OrganizationPresetAssetPlan, type OrganizationPresetAssetResult, OrganizationPresetDiagnostic, OrganizationPresetLayer, OrganizationPresetManifest, OrganizationPresetReference, OrganizationPresetResolution, OrganizationPresetSource, OrganizationPresetTemplate, type PackageCheckCommand, type PackageCheckDiagnostic, type PackageCheckManifestOptions, type PackageCheckOptions, type PackageCheckReport, type PackageCheckResult, type PeerCheckStatus, type PeerCompatibilityCheck, type PeerCompatibilityReport, type PlaywrightCapabilityOptions, type PlaywrightInteraction, type PreCommitVerifyOptions, type PrePushVerifyOptions, type PrepareSnapshotOptions, type PreparedSnapshot, type PreparedSnapshotConsumerOptions, type PreparedSnapshotConsumerReport, type PreparedSnapshotManifest, type PreparedSnapshotPublishOptions, type PreparedSnapshotPublishReport, ProjectReferencesApplyResult, ProjectReferencesCheck, ProjectReferencesConfig, ProjectReferencesDiagnostic, ProjectReferencesOperation, ProjectReferencesPlan, type PublicApiConfig, type PublicApiDiagnostic, type PublicApiEntryConfig, type PublicApiEntryReport, type PublicApiOptions, type PublicApiPackageConfig, type PublicApiReport, type PublicApiUpdatePlan, type PublicApiUpdateResult, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseBranchRule, type ReleaseBranchesConfig, type ReleaseCiOptions, type ReleaseCiStage, type StageReceipt as ReleaseCiStageResult, type ReleaseCommandConfig, type ReleaseCompletionRecord, type ReleaseLifecycleState, type ReleaseNightlyConfig, type ReleaseOidcArtifactAuditOptions, type ReleaseOidcAuditOptions, type ReleaseOidcAuditPackage, type ReleaseOidcAuditReport, type ReleaseOidcPackageResult, type ReleasePlan, type ReleasePlanOptions, type ReleasePlanPackage, type ReleasePreparationGeneratedFile, type ReleasePreparationGeneratedFileContext, type ReleasePreparationPolicy, type ReleasePreparationValidationFile, type ReleasePreparationValidationOptions, type ReleasePreparationValidationReport, type ReleaseRegistryConfig, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type ResolveTemplateCatalogOptions, type ResolvedTemplateRemoteSource, type ResolvedTemplateSource, type SimpleGit, type SimpleGitOptions, type SkillTarget, type SnapshotBuildPackage, type SnapshotBuildPlan, type SnapshotBuildPlanOptions, type SnapshotDependency, type SnapshotIdentity, type SnapshotOptions, type SnapshotPackage, type SnapshotPreparationContext, type SnapshotPreparationReceipt, type SnapshotPreparationResult, type SnapshotReferenceGitlink, type SnapshotReport, type SnapshotRunEvidence, type SnapshotSource, type SnapshotWorkflowOptions, type SnapshotWorkflowPolicy, type SnapshotWorkflows, type StagedTypecheckOptions, type StorybookArgs, type StorybookCapabilityOptions, type StylelintToolingConfig, type SyncSkillsOptions, type TemplateCatalog, type TemplateCatalogDiagnostic, type TemplateCatalogEntry, type TemplateDriftCollection, type TemplateDriftFile, type TemplateDriftOptions, type TemplateDriftOwner, type TemplateDriftRegistry, type TemplateDriftReport, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, type TemplateInstance, type TemplateInstanceBaseline, type TemplateInstanceInfo, type TemplateInstanceRegistry, type TemplateInstanceSource, type TemplateLinkOptions, type TemplateLinkPlan, type TemplateRemoteSource, type TemplateSourceOptions, type TemplateSourceRequest, type TemplateUpgradeChange, type TemplateUpgradeEntry, type TemplateUpgradeOptions, type TemplateUpgradePlan, type TemplateUpgradeRecoveryResult, type TemplateUpgradeResult, type TemplateValidationDiagnostic, type TemplateValidationOptions, type TemplateValidationParameterSet, type TemplateValidationPlan, type TemplateValidationReport, type TemplateValidationSample, type TemplateValidationStage, type TemplateValidationStep, type TemplateVersionComparison, type TemplateVersionEvidence, type ToolingCapability, type ToolingCapabilityFile, type ToolingCapabilityOptions, type ToolingCapabilityPlan, type ToolingCapabilityResult, type ToolingConfig, type TsconfigToolingConfig, type TurboAnalysisLimitation, type TurboAnalysisOptions, type TurboCriticalPath, type TurboHashEvidence, type TurboRunAnalysis, type TurboTaskAnalysis, UpgradeApplyOptions, UpgradeApplyResult, UpgradeBaselineChange, UpgradeCommandConfig, UpgradeFilePlan, UpgradeFileStatus, UpgradeInput, UpgradeKeepDecision, UpgradeMergeDetails, UpgradeMigrationStep, UpgradeMigrationsPlan, UpgradeOptions, UpgradeOverrideFinding, UpgradePlan, UpgradeWorkspacePolicy, type VerifiedSnapshotRun, type VerifyCommandOptions, type VerifySnapshotRunOptions, type VitestProjectToolingConfig, type VitestToolingConfig, type WorkspaceArtifactApplyOptions, type WorkspaceArtifactOptions, type WorkspaceArtifactPlan, type WorkspaceArtifactResult, type WorkspaceBoundariesConfig, type WorkspaceBoundariesReport, type WorkspaceBoundaryException, type WorkspaceBoundaryFinding, type WorkspaceBoundaryRule, type WorkspaceBoundarySelector, WorkspaceData, type WorkspaceDependencyType, type WorkspaceGraph, type WorkspaceGraphDiagnostic, type WorkspaceGraphEdge, type WorkspaceGraphFilter, type WorkspaceGraphNode, type WorkspaceGraphOptions, type WorkspaceImpactOptions, type WorkspaceImpactResult, type WorkspaceLocation, WorkspaceMoveOptions, WorkspaceMovePlan, WorkspaceMoveResult, WorkspaceMoveReview, type WorkspaceOwnership, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, WorkspaceRemovalBlocker, WorkspaceRemovalEntry, WorkspaceRemovalFile, WorkspaceRemovalOptions, WorkspaceRemovalPlan, WorkspaceRemovalResult, type WorkspaceTask, type WorkspaceTaskCatalog, type WorkspaceTaskOptions, type WorkspaceTaskPackage, type WorkspaceWhyResult, applyCreateNewProjectPlan, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, listTemplateInstances, loadAgenticTasks, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, normalizeInitToolingTargets, name as packageName, rebuildTemplateInstanceBaseline, recoverUnpublished, relocateTemplateInstance, resolveCreateNewProjectPlan, resolveRemoteTemplateSource, resolveTemplateCatalog, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks-
|
|
2
|
-
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-
|
|
3
|
-
import { $ as planPublicApiUpdate, A as createSnapshotPlan, At as init, B as planOrganizationPresetAssets, Bt as runDoctor, Ct as parsePublishSummary, D as releaseNightly, Dt as createAutoChangesetPlan, E as createNightlyPlan, Et as applyAutoChangeset, F as checkPackages, Ft as createContext, G as planInstallSecurityPreset, Gt as applyCreateNewProjectPlan, H as planDevContainer, Ht as planDoctorFix, I as getMaintenanceWorkflow, It as collectEnvInfo, J as planDocsDeployment, Jt as resolveCreateNewProjectPlan, K as deployDocs, Kt as createNewProject, L as prepareMaintenanceUpgrade, Lt as collectEnvPaths, M as syncProjectReferences, Mt as initTooling, N as applyProjectReferencesPlan, Nt as normalizeInitToolingTargets, Ot as getAutoChangesetWorkflow, P as planProjectReferences, Pt as initToolingTargets, Q as applyPublicApiUpdate, Qt as resolveRemoteTemplateSource, R as detectMaintenanceVersionChange, Rt as collectEnvSnapshot, S as snapshotPlanDigest, St as GitHubApiError, T as createReleasePlan, U as installGitHooks, Ut as planUpgrade, V as applyDevContainerPlan, Vt as applyDoctorFixPlan, W as applyInstallSecurityPreset, Wt as applyUpgradePlan, X as resolveAffectedCheckMatrix, Xt as getTemplateMap, Y as checkPeerDependencies, Yt as getCreateChoices, Z as checkPublicApi, Zt as templateMap, _ as createSnapshotBuildPlan, _t as enterPrerelease, a as planWorkspaceMove, an as sanitizeConfigReport, at as skillTargets, bt as auditReleaseOidc, c as applyToolingCapability, cn as verifyStagedTypecheck, ct as readReleasePreparationPolicy, d as planTemplateValidation, dn as defaultAgenticBaseDir, dt as recoverUnpublished, en as resolveTemplateCatalog, et as formatPublicApiReport, f as getSnapshotWorkflows, fn as generateAgenticTemplate, ft as releaseCi, g as prepareSnapshot, gt as reconcileRelease, h as publishPreparedSnapshot, ht as releaseStable, i as applyWorkspaceMovePlan, in as explainMonorepoConfig, it as getSkillTargetPaths, j as checkProjectReferences, jt as initMetadata, k as releaseSnapshot, kt as setVscodeBinaryMirror, l as planToolingCapability, ln as verifyPrePush, lt as repairReleaseNotes, mn as loadAgenticTasks, mt as publishStable, n as applyWorkspaceRemovalPlan, nn as updateIssueTemplateConfig, nt as formatUpgradePlan, o as applyWorkspaceArtifactPlan, on as validateConfigFile, ot as syncSkills, pn as generateAgenticTemplates, pt as prepareStable, q as DocsDeploymentError, r as planWorkspaceRemoval, rn as inspectMonorepoConfig, rt as checkTemplates, s as planWorkspaceArtifact, sn as cleanProjects, st as validateReleasePreparation, tt as upgradeMonorepo, u as validateTemplate, un as createTimestampFolderName, ut as createReleasePullRequest, v as verifySnapshotRun, vt as exitPrerelease, x as verifyPreparedSnapshotConsumer, xt as GitHubClient, y as freezeSnapshotSource, yt as releasePrerelease, z as applyOrganizationPresetAssets, zt as collectEnvSupportBundle } from "./commands-
|
|
4
|
-
import { F as validateMonorepoConfig, N as ConfigValidationError, P as assertMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as version, k as name, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
5
|
-
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-
|
|
6
|
-
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-
|
|
7
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
1
|
+
import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-erp9jUMf.mjs";
|
|
3
|
+
import { $ as planPublicApiUpdate, A as createSnapshotPlan, At as init, B as planOrganizationPresetAssets, Bt as runDoctor, Ct as parsePublishSummary, D as releaseNightly, Dt as createAutoChangesetPlan, E as createNightlyPlan, Et as applyAutoChangeset, F as checkPackages, Ft as createContext, G as planInstallSecurityPreset, Gt as applyCreateNewProjectPlan, H as planDevContainer, Ht as planDoctorFix, I as getMaintenanceWorkflow, It as collectEnvInfo, J as planDocsDeployment, Jt as resolveCreateNewProjectPlan, K as deployDocs, Kt as createNewProject, L as prepareMaintenanceUpgrade, Lt as collectEnvPaths, M as syncProjectReferences, Mt as initTooling, N as applyProjectReferencesPlan, Nt as normalizeInitToolingTargets, Ot as getAutoChangesetWorkflow, P as planProjectReferences, Pt as initToolingTargets, Q as applyPublicApiUpdate, Qt as resolveRemoteTemplateSource, R as detectMaintenanceVersionChange, Rt as collectEnvSnapshot, S as snapshotPlanDigest, St as GitHubApiError, T as createReleasePlan, U as installGitHooks, Ut as planUpgrade, V as applyDevContainerPlan, Vt as applyDoctorFixPlan, W as applyInstallSecurityPreset, Wt as applyUpgradePlan, X as resolveAffectedCheckMatrix, Xt as getTemplateMap, Y as checkPeerDependencies, Yt as getCreateChoices, Z as checkPublicApi, Zt as templateMap, _ as createSnapshotBuildPlan, _t as enterPrerelease, a as planWorkspaceMove, an as sanitizeConfigReport, at as skillTargets, bt as auditReleaseOidc, c as applyToolingCapability, cn as verifyStagedTypecheck, ct as readReleasePreparationPolicy, d as planTemplateValidation, dn as defaultAgenticBaseDir, dt as recoverUnpublished, en as resolveTemplateCatalog, et as formatPublicApiReport, f as getSnapshotWorkflows, fn as generateAgenticTemplate, ft as releaseCi, g as prepareSnapshot, gt as reconcileRelease, h as publishPreparedSnapshot, ht as releaseStable, i as applyWorkspaceMovePlan, in as explainMonorepoConfig, it as getSkillTargetPaths, j as checkProjectReferences, jt as initMetadata, k as releaseSnapshot, kt as setVscodeBinaryMirror, l as planToolingCapability, ln as verifyPrePush, lt as repairReleaseNotes, mn as loadAgenticTasks, mt as publishStable, n as applyWorkspaceRemovalPlan, nn as updateIssueTemplateConfig, nt as formatUpgradePlan, o as applyWorkspaceArtifactPlan, on as validateConfigFile, ot as syncSkills, pn as generateAgenticTemplates, pt as prepareStable, q as DocsDeploymentError, r as planWorkspaceRemoval, rn as inspectMonorepoConfig, rt as checkTemplates, s as planWorkspaceArtifact, sn as cleanProjects, st as validateReleasePreparation, tt as upgradeMonorepo, u as validateTemplate, un as createTimestampFolderName, ut as createReleasePullRequest, v as verifySnapshotRun, vt as exitPrerelease, x as verifyPreparedSnapshotConsumer, xt as GitHubClient, y as freezeSnapshotSource, yt as releasePrerelease, z as applyOrganizationPresetAssets, zt as collectEnvSupportBundle } from "./commands-XgXSc1Oe.mjs";
|
|
4
|
+
import { F as validateMonorepoConfig, N as ConfigValidationError, P as assertMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as version, k as name, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-C9-YXb3u.mjs";
|
|
5
|
+
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-Bf5v7YIt.mjs";
|
|
6
|
+
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-BOHTihwf.mjs";
|
|
7
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-B5Jq29a6.mjs";
|
|
8
|
+
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-BZEixZ-s.mjs";
|
|
9
|
+
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-BaNTZju7.mjs";
|
|
10
10
|
import crypto from "node:crypto";
|
|
11
11
|
import { Buffer } from "node:buffer";
|
|
12
12
|
//#region src/utils/hash.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as record, yt as packageDir } from "./workspace-tasks-
|
|
1
|
+
import { at as record, yt as packageDir } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
2
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
3
3
|
import path from "pathe";
|
|
4
4
|
import process from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as stopCheckProcessTree } from "./workspace-tasks-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { planKnipCheck } from "./plan-
|
|
4
|
-
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-
|
|
1
|
+
import { U as stopCheckProcessTree } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-_wD6MeHm.mjs";
|
|
3
|
+
import { planKnipCheck } from "./plan-BSD_7Zq0.mjs";
|
|
4
|
+
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-DeNco-Oq.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-
|
|
2
|
-
import { knipRoot } from "./plan-
|
|
3
|
-
import { n as validateKnipBaseline } from "./baseline-
|
|
1
|
+
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { knipRoot } from "./plan-BSD_7Zq0.mjs";
|
|
3
|
+
import { n as validateKnipBaseline } from "./baseline-DeNco-Oq.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { link, lstat, open, readFile, rename, unlink } from "node:fs/promises";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks-
|
|
2
|
-
import { M as mergeConfigValues, N as ConfigValidationError, P as assertMonorepoConfig, V as commandSchemas,
|
|
1
|
+
import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks-CRErTv9q.mjs";
|
|
2
|
+
import { J as replaceDocsTarget, M as mergeConfigValues, N as ConfigValidationError, P as assertMonorepoConfig, V as commandSchemas, X as validateSchema, f as loadMonorepoConfigDetails, u as getRepoctlConfigCandidates } from "./tsconfig-C9-YXb3u.mjs";
|
|
3
3
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { access, realpath } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-
|
|
3
|
-
import { D as relativeFile, N as ConfigValidationError, T as readOptional,
|
|
4
|
-
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-
|
|
2
|
+
import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-CRErTv9q.mjs";
|
|
3
|
+
import { D as relativeFile, N as ConfigValidationError, T as readOptional, W as resolveNightlyConfig, f as loadMonorepoConfigDetails, p as resolveCommandConfig, w as hash$1 } from "./tsconfig-C9-YXb3u.mjs";
|
|
4
|
+
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-Bf5v7YIt.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
7
7
|
import path from "pathe";
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-
|
|
1
|
+
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-BBYRSLAi.mjs";
|
|
2
2
|
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|