@icebreakers/monorepo 6.5.4 → 6.6.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-CQVDciG4.mjs → baseline-BS_u59AV.mjs} +1 -1
- package/dist/{catalog-6_tT0U3p.mjs → catalog-CiaAmiTm.mjs} +4 -4
- package/dist/cli.mjs +62 -62
- package/dist/{commands-CAyU1yqP.mjs → commands-B1PJUmy-.mjs} +192 -91
- package/dist/{config-CT_nsp4o.mjs → config-CmB-5xZ5.mjs} +3 -3
- package/dist/{create-flow-BV2NTOIE.mjs → create-flow-DylDl_6a.mjs} +3 -3
- package/dist/{deps-CIrWBABk.mjs → deps-DWFcbBQu.mjs} +4 -4
- package/dist/{execute-e7SGX_Y0.mjs → execute-Bd-yrRBO.mjs} +2 -2
- package/dist/{execute-Y_6G_tEl.mjs → execute-CowTATMR.mjs} +2 -2
- package/dist/{format-jsSjadNe.mjs → format-C2UJ-Xzb.mjs} +1 -1
- package/dist/{index-C7KR7hT8.d.mts → index-CFxo1hPA.d.mts} +4 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -9
- package/dist/{inputs-DOUYGoHq.mjs → inputs-Pn_oLgyr.mjs} +1 -1
- package/dist/{npm-tUIGIuFQ.mjs → npm-D3cb3ygy.mjs} +1 -1
- package/dist/{plan-DC33-_or.mjs → plan-C4S0SIsH.mjs} +2 -2
- package/dist/{run-DT6Q-jbq.mjs → run-5k6GII0n.mjs} +4 -4
- package/dist/{save-Foea-Ao9.mjs → save-LOJWHI5C.mjs} +3 -3
- package/dist/{scan-DA7VmNjC.mjs → scan-C6ZqUxK0.mjs} +9 -2
- package/dist/{template-drift-B18bgxT6.mjs → template-drift-D3Hwedod.mjs} +3 -3
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-B4vPaBcK.mjs → transaction-Cpnd5xhK.mjs} +2 -2
- package/dist/{tsconfig-DpOi_7HA.mjs → tsconfig-BSF6chfb.mjs} +49 -32
- package/dist/{vitest-Dh5Qm_3L.mjs → vitest-CgpUDzkr.mjs} +1 -1
- package/dist/{workspace-tasks-Ca1zWNKr.mjs → workspace-tasks-DucdLmBS.mjs} +51 -51
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as packageDir$1, B as normalizeTemplateSourceRequest, C as checkedFile, D as relativeFile, E as readOptionalSource, G as isUpgradeExpiry, H as sourceRequestKey, I as ConfigValidationError, J as
|
|
2
|
-
import { A as referenceTarget, B as saveKnipBaseline, Bt as getWorkspacePackages, C as loadCompiler, D as ownershipFile, E as exists$1, Et as fs$2, Ht as findWorkspacePackages, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, K as mergeText, Lt as clearWorkspaceCache, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, Rt as getWorkspaceData, S as configReader, T as compare$1, Ut as GitClient, W as analyzeTurboRuns, Z as getWorkspaceImpact, _ as planTemplateLink, _t as localize, at as record$6, b as planGenerate, bt as resolveRepoctlLocale, 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$1, 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, rt as hash$2, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, y as applyGeneratePlan, z as runKnipCheck, zt as getWorkspacePackageSummaries } 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 { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, o as matchGroup, r as parseSpecifier, s as resolveCommandValues, t as scanDependencies } from "./scan-
|
|
5
|
-
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$7, 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-
|
|
6
|
-
import { t as writeDependencyTransaction } from "./transaction-
|
|
7
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
8
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
1
|
+
import { $ as isRecord$2, A as packageDir$1, B as normalizeTemplateSourceRequest, C as checkedFile, D as relativeFile, E as readOptionalSource, G as isUpgradeExpiry, H as sourceRequestKey, I as ConfigValidationError, J as resolveNightlyConfig, K as defaultNightlyQualityTimeoutMs, M as rootDir, N as templatesDir, O as assetsDir$1, P as version$1, S as canonicalDirectory, T as readOptional$1, U as templateSourcePath, X as presetVersion, Y as presetPackageName, Z as withLegacyHookConfig, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, it as __exportAll, n as defineTsconfigConfig, p as resolveCommandConfig, rt as commandConfigDirectory, tt as appendConfigPath, u as getRepoctlConfigCandidates, v as installedPresetDirectory, w as hash$1, x as readPresetFile, y as parsePresetJson, z as normalizeTemplateRemoteSource } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { A as referenceTarget, B as saveKnipBaseline, Bt as getWorkspacePackages, C as loadCompiler, D as ownershipFile, E as exists$1, Et as fs$2, Ht as findWorkspacePackages, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, K as mergeText, Lt as clearWorkspaceCache, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, Rt as getWorkspaceData, S as configReader, T as compare$1, Ut as GitClient, W as analyzeTurboRuns, Z as getWorkspaceImpact, _ as planTemplateLink, _t as localize, at as record$6, b as planGenerate, bt as resolveRepoctlLocale, 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$1, 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, rt as hash$2, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, y as applyGeneratePlan, z as runKnipCheck, zt as getWorkspacePackageSummaries } from "./workspace-tasks-DucdLmBS.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-CowTATMR.mjs";
|
|
4
|
+
import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, o as matchGroup, r as parseSpecifier, s as resolveCommandValues, t as scanDependencies } from "./scan-C6ZqUxK0.mjs";
|
|
5
|
+
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$7, 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-D3Hwedod.mjs";
|
|
6
|
+
import { t as writeDependencyTransaction } from "./transaction-Cpnd5xhK.mjs";
|
|
7
|
+
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-DWFcbBQu.mjs";
|
|
8
|
+
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-CiaAmiTm.mjs";
|
|
9
9
|
import { createRequire, isBuiltin } from "node:module";
|
|
10
10
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
11
11
|
import { readWorkspaceManifest } from "@pnpm/workspace.read-manifest";
|
|
@@ -1521,7 +1521,7 @@ async function downloadGitTemplate(source, directory, timeout) {
|
|
|
1521
1521
|
async function resolveRemoteTemplateSource(source, templatePath = ".", options = {}) {
|
|
1522
1522
|
const request = normalizeTemplateSourceRequest(source, templatePath);
|
|
1523
1523
|
const cwd = path$1.resolve(options.cwd ?? process.cwd());
|
|
1524
|
-
const npm = request.source.kind === "npm" ? await import("./npm-
|
|
1524
|
+
const npm = request.source.kind === "npm" ? await import("./npm-D3cb3ygy.mjs") : void 0;
|
|
1525
1525
|
const configuration = request.source.kind === "npm" ? await npm.npmTemplateConfiguration(request.source, cwd) : void 0;
|
|
1526
1526
|
if (request.source.kind === "npm") request.source.registry = configuration.registry;
|
|
1527
1527
|
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"));
|
|
@@ -1601,7 +1601,7 @@ const legacyOrder = new Map([
|
|
|
1601
1601
|
"nimbus",
|
|
1602
1602
|
"react-lib"
|
|
1603
1603
|
].map((key, index) => [key, index]));
|
|
1604
|
-
const legacyChoices = [...templateChoices].sort((left, right) => (legacyOrder.get(left.key) ??
|
|
1604
|
+
const legacyChoices = [...templateChoices].sort((left, right) => (legacyOrder.get(left.key) ?? 1e400) - (legacyOrder.get(right.key) ?? 1e400));
|
|
1605
1605
|
const templateMap = Object.fromEntries(legacyChoices.map(({ key, source, target }) => [key, {
|
|
1606
1606
|
source,
|
|
1607
1607
|
target
|
|
@@ -6586,7 +6586,7 @@ async function assertSnapshotAuthorization(options) {
|
|
|
6586
6586
|
} else if (!["schedule", "workflow_dispatch"].includes(env["GITHUB_EVENT_NAME"] ?? "")) throw new Error("Nightly snapshot publication requires a schedule or workflow_dispatch event.");
|
|
6587
6587
|
}
|
|
6588
6588
|
// src/commands/release/snapshot/prepared/schema.ts
|
|
6589
|
-
function object$
|
|
6589
|
+
function object$1(value) {
|
|
6590
6590
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Snapshot data must be a JSON object.");
|
|
6591
6591
|
return value;
|
|
6592
6592
|
}
|
|
@@ -6606,7 +6606,7 @@ function packageName(value) {
|
|
|
6606
6606
|
return typeof value === "string" && validatePackageName(value).validForNewPackages;
|
|
6607
6607
|
}
|
|
6608
6608
|
function validateSnapshotSource(value) {
|
|
6609
|
-
const source = object$
|
|
6609
|
+
const source = object$1(value);
|
|
6610
6610
|
exactKeys(source, [
|
|
6611
6611
|
"repository",
|
|
6612
6612
|
"repositoryId",
|
|
@@ -6648,7 +6648,7 @@ function snapshotPlanDigest(plan) {
|
|
|
6648
6648
|
}
|
|
6649
6649
|
/** Validate the complete frozen contract before using any artifact-controlled values. */
|
|
6650
6650
|
function validateSnapshotBuildPlan(value) {
|
|
6651
|
-
const plan = object$
|
|
6651
|
+
const plan = object$1(value);
|
|
6652
6652
|
exactKeys(plan, [
|
|
6653
6653
|
"schemaVersion",
|
|
6654
6654
|
"source",
|
|
@@ -6660,7 +6660,7 @@ function validateSnapshotBuildPlan(value) {
|
|
|
6660
6660
|
"packages"
|
|
6661
6661
|
]);
|
|
6662
6662
|
const source = validateSnapshotSource(plan["source"]);
|
|
6663
|
-
const identity = object$
|
|
6663
|
+
const identity = object$1(plan["identity"]);
|
|
6664
6664
|
exactKeys(identity, [
|
|
6665
6665
|
"kind",
|
|
6666
6666
|
"pullRequest",
|
|
@@ -6680,7 +6680,7 @@ function validateSnapshotBuildPlan(value) {
|
|
|
6680
6680
|
const names = /* @__PURE__ */ new Set();
|
|
6681
6681
|
const directories = /* @__PURE__ */ new Set();
|
|
6682
6682
|
for (const value of plan["packages"]) {
|
|
6683
|
-
const pkg = object$
|
|
6683
|
+
const pkg = object$1(value);
|
|
6684
6684
|
exactKeys(pkg, [
|
|
6685
6685
|
"name",
|
|
6686
6686
|
"directory",
|
|
@@ -6694,10 +6694,10 @@ function validateSnapshotBuildPlan(value) {
|
|
|
6694
6694
|
directories.add(pkg["directory"]);
|
|
6695
6695
|
}
|
|
6696
6696
|
for (const value of plan["packages"]) {
|
|
6697
|
-
const pkg = object$
|
|
6697
|
+
const pkg = object$1(value);
|
|
6698
6698
|
const edges = /* @__PURE__ */ new Set();
|
|
6699
6699
|
for (const value of pkg["dependencies"]) {
|
|
6700
|
-
const edge = object$
|
|
6700
|
+
const edge = object$1(value);
|
|
6701
6701
|
exactKeys(edge, [
|
|
6702
6702
|
"field",
|
|
6703
6703
|
"alias",
|
|
@@ -7891,6 +7891,20 @@ function runPublishAttempt(args, options) {
|
|
|
7891
7891
|
output: `${stdout}\n${stderr}`
|
|
7892
7892
|
};
|
|
7893
7893
|
}
|
|
7894
|
+
// src/commands/release/publish/diagnostics.ts
|
|
7895
|
+
/** 保留有界的子进程失败证据,静默 JSON 发布也能诊断且不暴露凭证。 */
|
|
7896
|
+
function publishCommandError(message, result, options) {
|
|
7897
|
+
const secrets = Object.entries(getReleaseEnv(options)).filter(([key, value]) => /token|secret|password|credential|authorization/i.test(key) && value).map(([, value]) => value).sort((a, b) => b.length - a.length);
|
|
7898
|
+
let output = stripVTControlCharacters([
|
|
7899
|
+
result.stdout,
|
|
7900
|
+
result.stderr,
|
|
7901
|
+
result.error?.message
|
|
7902
|
+
].filter(Boolean).join("\n"));
|
|
7903
|
+
for (const secret of secrets) output = output.replaceAll(secret, "[redacted]");
|
|
7904
|
+
output = output.replaceAll(/\beyJ[\w-]+\.[\w-]+\.[\w-]+\b/g, "[redacted]").replaceAll(/\bnpm_[a-z0-9]+\b/gi, "[redacted]").replaceAll(/\b(?:gh[pousr]_\w+|github_pat_\w+)\b/g, "[redacted]").trim().slice(-8e3);
|
|
7905
|
+
const status = `exit=${result.status ?? "unknown"}${result.signal ? ` signal=${result.signal}` : ""}`;
|
|
7906
|
+
return new ReleaseCommandError(`${message} (${status})${output ? `\n${output}` : ""}`, result.status ?? 1);
|
|
7907
|
+
}
|
|
7894
7908
|
// src/commands/release/publish/state.ts
|
|
7895
7909
|
function packageKey(pkg) {
|
|
7896
7910
|
return `${pkg.name}@${pkg.version}`;
|
|
@@ -8255,7 +8269,7 @@ async function publishWithRetry(args, options, candidates, confirmAll = false, r
|
|
|
8255
8269
|
recovering = true;
|
|
8256
8270
|
const transient = isTransientPublishFailure(result.output);
|
|
8257
8271
|
const conflict = isPublishConflict(result.output);
|
|
8258
|
-
if (!transient && !conflict) throw
|
|
8272
|
+
if (!transient && !conflict) throw publishCommandError(`command failed: pnpm ${args.join(" ")}`, result, options);
|
|
8259
8273
|
await refreshRegistry(state, options);
|
|
8260
8274
|
await state.save(options.cwd, "publishing");
|
|
8261
8275
|
if (!state.pendingUploads.length || conflict && !transient) {
|
|
@@ -8263,7 +8277,7 @@ async function publishWithRetry(args, options, candidates, confirmAll = false, r
|
|
|
8263
8277
|
await state.save(options.cwd, "complete");
|
|
8264
8278
|
return;
|
|
8265
8279
|
}
|
|
8266
|
-
if (attempt === publishAttempts) throw
|
|
8280
|
+
if (attempt === publishAttempts) throw publishCommandError(`command failed after ${publishAttempts} publish attempts: pnpm ${args.join(" ")}`, result, options);
|
|
8267
8281
|
const delay = retryDelays[attempt - 1];
|
|
8268
8282
|
if (!options.quiet) logger.warn(`npm publish transient failure; reconciling before retry in ${delay / 1e3}s (attempt ${attempt + 1}/${publishAttempts}).`);
|
|
8269
8283
|
await sleep(delay, options);
|
|
@@ -16112,6 +16126,23 @@ async function checkProjectReferences(cwd) {
|
|
|
16112
16126
|
async function syncProjectReferences(cwd) {
|
|
16113
16127
|
return applyProjectReferencesPlan(await planProjectReferences(cwd));
|
|
16114
16128
|
}
|
|
16129
|
+
// src/commands/release/snapshot/install.ts
|
|
16130
|
+
function snapshotInstallation(packages, registry) {
|
|
16131
|
+
const args = [
|
|
16132
|
+
"add",
|
|
16133
|
+
...packages.map((pkg) => `${pkg.name}@${pkg.version}`),
|
|
16134
|
+
"--registry",
|
|
16135
|
+
registry
|
|
16136
|
+
];
|
|
16137
|
+
const quote = (value) => /^[\w@./:-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
16138
|
+
return {
|
|
16139
|
+
install: {
|
|
16140
|
+
executable: "pnpm",
|
|
16141
|
+
args
|
|
16142
|
+
},
|
|
16143
|
+
installCommand: `pnpm ${args.map(quote).join(" ")}`
|
|
16144
|
+
};
|
|
16145
|
+
}
|
|
16115
16146
|
// src/commands/release/snapshot/source/paths.ts
|
|
16116
16147
|
/** 产物和 Git tree 使用逻辑路径;只在文件系统边界转换分隔符。 */
|
|
16117
16148
|
function sourceRelativePath(value) {
|
|
@@ -16239,13 +16270,6 @@ async function createSnapshotPlan(options) {
|
|
|
16239
16270
|
...options,
|
|
16240
16271
|
cwd: source
|
|
16241
16272
|
});
|
|
16242
|
-
const installArgs = [
|
|
16243
|
-
"add",
|
|
16244
|
-
...packages.map((pkg) => `${pkg.name}@${pkg.version}`),
|
|
16245
|
-
"--registry",
|
|
16246
|
-
registry.href
|
|
16247
|
-
];
|
|
16248
|
-
const quote = (value) => /^[\w@./:-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
16249
16273
|
return {
|
|
16250
16274
|
schemaVersion: 1,
|
|
16251
16275
|
identity,
|
|
@@ -16258,11 +16282,7 @@ async function createSnapshotPlan(options) {
|
|
|
16258
16282
|
status: "planned",
|
|
16259
16283
|
packages,
|
|
16260
16284
|
nativePlan,
|
|
16261
|
-
|
|
16262
|
-
executable: "pnpm",
|
|
16263
|
-
args: installArgs
|
|
16264
|
-
},
|
|
16265
|
-
installCommand: `pnpm ${installArgs.map(quote).join(" ")}`
|
|
16285
|
+
...snapshotInstallation(packages, registry.href)
|
|
16266
16286
|
};
|
|
16267
16287
|
}
|
|
16268
16288
|
// src/commands/release/snapshot/source/archive.ts
|
|
@@ -16673,6 +16693,14 @@ async function releaseSnapshot(options) {
|
|
|
16673
16693
|
await checkpoint();
|
|
16674
16694
|
return report;
|
|
16675
16695
|
}
|
|
16696
|
+
// src/commands/release/consumer/workspace.ts
|
|
16697
|
+
/** 使用可原位编辑的 YAML,允许 pnpm 为新依赖追加精确版本例外。 */
|
|
16698
|
+
function consumerWorkspace(packages) {
|
|
16699
|
+
return stringify({
|
|
16700
|
+
packages: [],
|
|
16701
|
+
...packages ? { minimumReleaseAgeExclude: packages.map((pkg) => `${pkg.name}@${pkg.version}`) } : {}
|
|
16702
|
+
}, { collectionStyle: "block" });
|
|
16703
|
+
}
|
|
16676
16704
|
// src/commands/release/nightly/consumer/missing-version.ts
|
|
16677
16705
|
function isRecord(value) {
|
|
16678
16706
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -16829,10 +16857,7 @@ async function verifyNightlyConsumer(report, options) {
|
|
|
16829
16857
|
};
|
|
16830
16858
|
await Promise.all([
|
|
16831
16859
|
writeFile(path$1.join(directory, "package.json"), `${JSON.stringify(manifest, null, 2)}\n`),
|
|
16832
|
-
writeFile(path$1.join(directory, "pnpm-workspace.yaml"),
|
|
16833
|
-
packages: [],
|
|
16834
|
-
...report.provider === "npm" ? { minimumReleaseAgeExclude: report.packages.map((pkg) => `${pkg.name}@${pkg.version}`) } : {}
|
|
16835
|
-
}, null, 2)}\n`),
|
|
16860
|
+
writeFile(path$1.join(directory, "pnpm-workspace.yaml"), consumerWorkspace(report.provider === "npm" ? report.packages : void 0)),
|
|
16836
16861
|
writeFile(path$1.join(directory, "user.npmrc"), ""),
|
|
16837
16862
|
writeFile(path$1.join(directory, "global.npmrc"), "")
|
|
16838
16863
|
]);
|
|
@@ -16964,10 +16989,30 @@ function nightlyQualityCommand(report, options, executable, args, timeout = defa
|
|
|
16964
16989
|
}
|
|
16965
16990
|
return nightlyCommand(report, options, executable, args, timeout);
|
|
16966
16991
|
}
|
|
16967
|
-
// src/commands/release/nightly/
|
|
16992
|
+
// src/commands/release/nightly/versioning/date.ts
|
|
16993
|
+
function nightlyBaseVersion(version) {
|
|
16994
|
+
const parsed = parse(version);
|
|
16995
|
+
if (!parsed) throw new Error(`Invalid nightly base version: ${version}.`);
|
|
16996
|
+
return `${parsed.major}.${parsed.minor}.${parsed.patch}`;
|
|
16997
|
+
}
|
|
16998
|
+
/** Accept only canonical SemVer with a real UTC calendar date and safe counter. */
|
|
16999
|
+
function parseDateNightlyVersion(version) {
|
|
17000
|
+
const match = /^(\d+\.\d+\.\d+)-dev\.(\d{4})(\d{2})(\d{2})\.([1-9]\d*)$/u.exec(version);
|
|
17001
|
+
if (!match || !valid(version)) return null;
|
|
17002
|
+
const date = `${match[2]}${match[3]}${match[4]}`;
|
|
17003
|
+
const instant = /* @__PURE__ */ new Date(`${match[2]}-${match[3]}-${match[4]}T00:00:00.000Z`);
|
|
17004
|
+
const sequence = Number(match[5]);
|
|
17005
|
+
if (!Number.isFinite(instant.getTime()) || instant.toISOString().slice(0, 10).replaceAll("-", "") !== date || !Number.isSafeInteger(sequence)) return null;
|
|
17006
|
+
return {
|
|
17007
|
+
base: match[1],
|
|
17008
|
+
date,
|
|
17009
|
+
sequence
|
|
17010
|
+
};
|
|
17011
|
+
}
|
|
17012
|
+
// src/commands/release/nightly/providers/npm/registry.ts
|
|
16968
17013
|
const registry = "https://registry.npmjs.org/";
|
|
16969
|
-
const
|
|
16970
|
-
function
|
|
17014
|
+
const nightlyTag = "snapshot-nightly";
|
|
17015
|
+
function registryObject(value) {
|
|
16971
17016
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
16972
17017
|
}
|
|
16973
17018
|
function createNightlyRegistry(options) {
|
|
@@ -16977,35 +17022,58 @@ function createNightlyRegistry(options) {
|
|
|
16977
17022
|
let response;
|
|
16978
17023
|
try {
|
|
16979
17024
|
response = await (options.registryFetch ?? fetch)(new URL(pathname, registry), {
|
|
16980
|
-
|
|
17025
|
+
redirect: "error",
|
|
17026
|
+
headers: {
|
|
17027
|
+
"accept": "application/json",
|
|
17028
|
+
"cache-control": "no-cache"
|
|
17029
|
+
},
|
|
16981
17030
|
signal: AbortSignal.timeout(Math.max(1, Math.floor(timeout)))
|
|
16982
17031
|
});
|
|
16983
17032
|
} catch {
|
|
16984
17033
|
throw new Error(`Nightly registry request failed for ${pathname}; publication state is unknown.`);
|
|
16985
17034
|
}
|
|
16986
|
-
if (response.status === 404)
|
|
16987
|
-
|
|
17035
|
+
if (response.status === 404) {
|
|
17036
|
+
await response.body?.cancel();
|
|
17037
|
+
return null;
|
|
17038
|
+
}
|
|
17039
|
+
if (!response.ok) {
|
|
17040
|
+
await response.body?.cancel();
|
|
17041
|
+
throw new Error(`Nightly registry returned HTTP ${response.status} for ${pathname}; publication state is unknown.`);
|
|
17042
|
+
}
|
|
16988
17043
|
const value = await response.json().catch(() => null);
|
|
16989
|
-
if (!
|
|
17044
|
+
if (!registryObject(value)) throw new Error(`Nightly registry returned invalid metadata for ${pathname}.`);
|
|
16990
17045
|
return value;
|
|
16991
17046
|
}
|
|
16992
|
-
return {
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
17047
|
+
return {
|
|
17048
|
+
async versions(name) {
|
|
17049
|
+
const metadata = await request(encodeURIComponent(name));
|
|
17050
|
+
if (!metadata) return [];
|
|
17051
|
+
if (metadata["name"] !== name || !registryObject(metadata["versions"])) throw new Error(`Nightly registry returned invalid version history for ${name}.`);
|
|
17052
|
+
return Object.entries(metadata["versions"]).map(([version, entry]) => {
|
|
17053
|
+
if (!valid(version) || !registryObject(entry) || entry["name"] !== name || entry["version"] !== version) throw new Error(`Nightly registry version history does not match ${name}@${version}.`);
|
|
17054
|
+
return entry;
|
|
17055
|
+
});
|
|
17056
|
+
},
|
|
17057
|
+
async publication(name, allowMissingVersion = false, deadline) {
|
|
17058
|
+
const tags = await request(`-/package/${encodeURIComponent(name)}/dist-tags`, deadline);
|
|
17059
|
+
if (tags && Object.values(tags).some((value) => typeof value !== "string" || !value)) throw new Error(`Nightly registry returned invalid dist-tags for ${name}.`);
|
|
17060
|
+
const version = tags?.[nightlyTag];
|
|
17061
|
+
const metadata = version ? await request(`${encodeURIComponent(name)}/${encodeURIComponent(version)}`, deadline) : null;
|
|
17062
|
+
if (version && !metadata && !allowMissingVersion) throw new Error(`Nightly tag for ${name} points at unavailable metadata; publication state is unknown.`);
|
|
17063
|
+
if (metadata && (metadata["name"] !== name || metadata["version"] !== version)) throw new Error(`Nightly registry metadata does not match ${name}@${version}.`);
|
|
17064
|
+
return {
|
|
17065
|
+
latest: tags?.["latest"] ?? null,
|
|
17066
|
+
version: version ?? null,
|
|
17067
|
+
metadata
|
|
17068
|
+
};
|
|
17069
|
+
}
|
|
17070
|
+
};
|
|
17005
17071
|
}
|
|
17072
|
+
// src/commands/release/nightly/providers/npm/identity.ts
|
|
17073
|
+
/** Naming is independent of identity; both formats require the same immutable evidence. */
|
|
17006
17074
|
function validPublishedIdentity(metadata) {
|
|
17007
17075
|
const value = metadata?.repoctlSnapshot;
|
|
17008
|
-
if (!
|
|
17076
|
+
if (!registryObject(value) || Object.keys(value).sort().join(",") !== "buildId,commit,identityKey,kind,tag" || value["kind"] !== "nightly" || value["tag"] !== "snapshot-nightly" || typeof value["commit"] !== "string" || typeof value["buildId"] !== "string" || !/^sha512-[\w+/]{86}==$/.test(metadata?.dist?.integrity ?? "")) return null;
|
|
17009
17077
|
const identity = {
|
|
17010
17078
|
kind: "nightly",
|
|
17011
17079
|
commit: value["commit"],
|
|
@@ -17016,14 +17084,19 @@ function validPublishedIdentity(metadata) {
|
|
|
17016
17084
|
cwd: "",
|
|
17017
17085
|
identity
|
|
17018
17086
|
});
|
|
17019
|
-
|
|
17087
|
+
if (value["identityKey"] !== key || !metadata || !valid(metadata.version)) return null;
|
|
17088
|
+
const daily = parseDateNightlyVersion(metadata.version);
|
|
17089
|
+
const legacy = metadata.version.endsWith(`-snapshot.nightly.c${identity.commit}.b${key}`);
|
|
17090
|
+
return daily || legacy ? {
|
|
17020
17091
|
...identity,
|
|
17021
|
-
key
|
|
17092
|
+
key,
|
|
17093
|
+
batch: daily ? `date:${daily.date}.${daily.sequence}` : "snapshot"
|
|
17022
17094
|
} : null;
|
|
17023
17095
|
} catch {
|
|
17024
17096
|
return null;
|
|
17025
17097
|
}
|
|
17026
17098
|
}
|
|
17099
|
+
// src/commands/release/nightly/providers/npm/index.ts
|
|
17027
17100
|
/** Freeze latest before upload and skip only a complete channel sharing one build. */
|
|
17028
17101
|
async function inspectNpmNightly(report, options) {
|
|
17029
17102
|
const client = createNightlyRegistry(options);
|
|
@@ -17038,8 +17111,9 @@ async function inspectNpmNightly(report, options) {
|
|
|
17038
17111
|
complete = false;
|
|
17039
17112
|
continue;
|
|
17040
17113
|
}
|
|
17041
|
-
|
|
17042
|
-
|
|
17114
|
+
const batch = `${identity.key}:${identity.batch}`;
|
|
17115
|
+
sharedIdentity ??= batch;
|
|
17116
|
+
if (batch !== sharedIdentity) complete = false;
|
|
17043
17117
|
}
|
|
17044
17118
|
return complete;
|
|
17045
17119
|
}
|
|
@@ -17208,8 +17282,8 @@ function formatNightlySummary(report) {
|
|
|
17208
17282
|
if (report.reason || report.error) lines.push(escape(report.error ?? report.reason), "");
|
|
17209
17283
|
if (verified) {
|
|
17210
17284
|
lines.push("Install the complete batch (including internal peers):", "", `\`pnpm add ${report.packages.map((pkg) => escape(pkg.locator)).join(" ")}\``, "");
|
|
17211
|
-
lines.push("| Package | Install |", "| --- | --- |");
|
|
17212
|
-
for (const pkg of report.packages) lines.push(`| ${escape(pkg.name)} | \`pnpm add ${escape(pkg.locator)}\` |`);
|
|
17285
|
+
lines.push("| Package | Version | Install |", "| --- | --- | --- |");
|
|
17286
|
+
for (const pkg of report.packages) lines.push(`| ${escape(pkg.name)} | \`${escape(pkg.version)}\` | \`pnpm add ${escape(pkg.locator)}\` |`);
|
|
17213
17287
|
lines.push("", report.provider === "npm" ? "All snapshot-nightly tags match this build; latest tags are unchanged." : "All full-commit preview URLs match the verified tarballs.", "");
|
|
17214
17288
|
} else if (report.status === "prepared") lines.push("Artifacts are prepared and validated. Publication was not requested.", "");
|
|
17215
17289
|
else if (report.status === "failed" && report.confirmed && report.consumer?.status === "failed") {
|
|
@@ -17221,6 +17295,32 @@ function formatNightlySummary(report) {
|
|
|
17221
17295
|
async function writeNightlySummary(report, filename) {
|
|
17222
17296
|
if (filename) await appendFile(filename, formatNightlySummary(report));
|
|
17223
17297
|
}
|
|
17298
|
+
// src/commands/release/nightly/versioning/index.ts
|
|
17299
|
+
/** Freeze one batch before building. Published versions reserve counters even if their tags moved. */
|
|
17300
|
+
async function planDateNightlyVersions(report, options) {
|
|
17301
|
+
const date = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replaceAll("-", "");
|
|
17302
|
+
const registry = createNightlyRegistry(options);
|
|
17303
|
+
let maximum = 0;
|
|
17304
|
+
let recovered;
|
|
17305
|
+
for (const pkg of report.packages) {
|
|
17306
|
+
const versions = await registry.versions(pkg.name);
|
|
17307
|
+
for (const metadata of versions) {
|
|
17308
|
+
const daily = parseDateNightlyVersion(metadata.version);
|
|
17309
|
+
if (daily?.date === date) maximum = Math.max(maximum, daily.sequence);
|
|
17310
|
+
if (!registryObject(metadata.repoctlSnapshot) || metadata.repoctlSnapshot["identityKey"] !== report.identityKey) continue;
|
|
17311
|
+
if (!daily || daily.base !== nightlyBaseVersion(pkg.version) || !validPublishedIdentity(metadata) || !matchesSnapshotMetadata(metadata.repoctlSnapshot, report)) throw new Error(`Published nightly build identity conflicts at ${pkg.name}@${metadata.version}. Use a new run or attempt.`);
|
|
17312
|
+
if (recovered && (recovered.date !== daily.date || recovered.sequence !== daily.sequence)) throw new Error("Published nightly build identity spans conflicting dates or sequences. Use a new run or attempt.");
|
|
17313
|
+
recovered = daily;
|
|
17314
|
+
}
|
|
17315
|
+
}
|
|
17316
|
+
const batch = recovered ?? {
|
|
17317
|
+
date,
|
|
17318
|
+
sequence: maximum + 1
|
|
17319
|
+
};
|
|
17320
|
+
if (!Number.isSafeInteger(batch.sequence)) throw new TypeError("Nightly daily version sequence exceeds the safe integer limit.");
|
|
17321
|
+
for (const pkg of report.packages) pkg.version = `${nightlyBaseVersion(pkg.version)}-dev.${batch.date}.${batch.sequence}`;
|
|
17322
|
+
Object.assign(report, snapshotInstallation(report.packages, report.registry));
|
|
17323
|
+
}
|
|
17224
17324
|
// src/commands/release/nightly/index.ts
|
|
17225
17325
|
function updatePackages(report) {
|
|
17226
17326
|
report.packages = report.snapshot.packages.map((pkg) => ({
|
|
@@ -17289,6 +17389,10 @@ async function nightly(options, execute) {
|
|
|
17289
17389
|
report.reason = "Every public package already matches this commit and the same nightly build identity.";
|
|
17290
17390
|
return report;
|
|
17291
17391
|
}
|
|
17392
|
+
if (config.versioning === "date") {
|
|
17393
|
+
await planDateNightlyVersions(report.snapshot, options);
|
|
17394
|
+
updatePackages(report);
|
|
17395
|
+
}
|
|
17292
17396
|
if (!execute || options.dryRun) return report;
|
|
17293
17397
|
if (options.publish) {
|
|
17294
17398
|
await assertSnapshotAuthorization(snapshotOptions);
|
|
@@ -17395,8 +17499,8 @@ async function createReleasePlan(options) {
|
|
|
17395
17499
|
}
|
|
17396
17500
|
// src/commands/release/snapshot/prepared/validate.ts
|
|
17397
17501
|
function validatePackedManifest(value, pkg, plan) {
|
|
17398
|
-
const manifest = object$
|
|
17399
|
-
const publish = object$
|
|
17502
|
+
const manifest = object$1(value);
|
|
17503
|
+
const publish = object$1(manifest["publishConfig"]);
|
|
17400
17504
|
if (Object.keys(publish).some((key) => ![
|
|
17401
17505
|
"registry",
|
|
17402
17506
|
"tag",
|
|
@@ -17412,7 +17516,7 @@ function validatePackedManifest(value, pkg, plan) {
|
|
|
17412
17516
|
"optionalDependencies",
|
|
17413
17517
|
"peerDependencies",
|
|
17414
17518
|
"devDependencies"
|
|
17415
|
-
]) if (manifest[field] !== void 0 && Object.entries(object$
|
|
17519
|
+
]) if (manifest[field] !== void 0 && Object.entries(object$1(manifest[field])).some(([alias, range]) => !packageName(alias) || typeof range !== "string")) throw new Error(`Prepared snapshot dependency map is invalid for ${pkg.name}.`);
|
|
17416
17520
|
const seen = /* @__PURE__ */ new Set();
|
|
17417
17521
|
for (const reference of dependencyReferences(manifest, ".", true)) {
|
|
17418
17522
|
if (reference.protocol !== "registry" || !packageName(reference.name) || !validRange(reference.range)) throw new Error(`Prepared snapshot contains an unsupported dependency: ${pkg.name} ${reference.alias}.`);
|
|
@@ -17430,7 +17534,7 @@ function validatePackedManifest(value, pkg, plan) {
|
|
|
17430
17534
|
/** Inspect data and bytes only. Never extract, load configuration, install or execute candidate code. */
|
|
17431
17535
|
async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
17432
17536
|
const plan = validateSnapshotBuildPlan(trustedPlan);
|
|
17433
|
-
const manifest = object$
|
|
17537
|
+
const manifest = object$1(value);
|
|
17434
17538
|
exactKeys(manifest, [
|
|
17435
17539
|
"schemaVersion",
|
|
17436
17540
|
"plan",
|
|
@@ -17442,12 +17546,12 @@ async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
|
17442
17546
|
if (manifest["schemaVersion"] !== 1 || canonicalSnapshotJson(manifest["plan"]) !== canonicalSnapshotJson(plan) || manifest["planDigest"] !== snapshotPlanDigest(plan) || !Array.isArray(manifest["packages"]) || manifest["packages"].length !== plan.packages.length) throw new Error("Prepared snapshot does not match the trusted frozen plan.");
|
|
17443
17547
|
const encoded = files.get("snapshot-manifest.json");
|
|
17444
17548
|
if (!encoded || canonicalSnapshotJson(JSON.parse(new TextDecoder().decode(encoded))) !== canonicalSnapshotJson(manifest)) throw new Error("Prepared snapshot manifest bytes do not match the supplied manifest.");
|
|
17445
|
-
const checks = object$
|
|
17549
|
+
const checks = object$1(manifest["checks"]);
|
|
17446
17550
|
exactKeys(checks, ["build", "packages"]);
|
|
17447
17551
|
if (checks["build"] !== "passed" || !Array.isArray(checks["packages"]) || checks["packages"].length !== plan.packages.length) throw new Error("Prepared snapshot lacks successful build and package validation evidence.");
|
|
17448
17552
|
const expectedFiles = /* @__PURE__ */ new Set(["snapshot-manifest.json"]);
|
|
17449
17553
|
for (const [index, pkg] of plan.packages.entries()) {
|
|
17450
|
-
const artifact = object$
|
|
17554
|
+
const artifact = object$1(manifest["packages"][index]);
|
|
17451
17555
|
exactKeys(artifact, [
|
|
17452
17556
|
"name",
|
|
17453
17557
|
"version",
|
|
@@ -17464,7 +17568,7 @@ async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
|
17464
17568
|
const packed = entries.find((entry) => entry.path === "package/package.json" && entry.type === "File");
|
|
17465
17569
|
if (!packed || entries.some((entry) => entry.mode & 3584)) throw new Error(`Prepared snapshot has missing package metadata or unsafe archive permissions: ${pkg.name}.`);
|
|
17466
17570
|
validatePackedManifest(JSON.parse(packed.data.toString("utf8")), pkg, plan);
|
|
17467
|
-
const check = object$
|
|
17571
|
+
const check = object$1(checks["packages"][index]);
|
|
17468
17572
|
exactKeys(check, [
|
|
17469
17573
|
"name",
|
|
17470
17574
|
"status",
|
|
@@ -17639,12 +17743,12 @@ function snapshotPublicationReport(manifest, directory) {
|
|
|
17639
17743
|
// src/commands/release/snapshot/prepared/consumer/installed.ts
|
|
17640
17744
|
/** Validate the entire installed batch before any candidate entrypoint can run. */
|
|
17641
17745
|
async function installedSnapshotPackages(manifest, directory, applicable) {
|
|
17642
|
-
const packages = object$
|
|
17746
|
+
const packages = object$1(object$1(parse$1(await readFile(path$1.join(directory, "pnpm-lock.yaml"), "utf8")))["packages"]);
|
|
17643
17747
|
const snapshot = snapshotPublicationReport(manifest, directory);
|
|
17644
17748
|
const validated = [];
|
|
17645
17749
|
for (const pkg of manifest.packages) {
|
|
17646
17750
|
if (applicable && !applicable.has(pkg.name)) continue;
|
|
17647
|
-
if (object$
|
|
17751
|
+
if (object$1(object$1(packages[`${pkg.name}@${pkg.version}`])["resolution"])["integrity"] !== pkg.integrity) throw new Error(`Snapshot consumer installation did not retain the verified integrity for ${pkg.name}.`);
|
|
17648
17752
|
const installed = await realpath(path$1.join(directory, "node_modules", pkg.name));
|
|
17649
17753
|
const relative = path$1.relative(directory, installed);
|
|
17650
17754
|
if (!relative || relative === ".." || relative.startsWith(`..${path$1.sep}`) || path$1.isAbsolute(relative)) throw new Error(`Snapshot consumer resolved ${pkg.name} outside its isolated directory.`);
|
|
@@ -17710,10 +17814,7 @@ async function verifyPreparedSnapshotConsumer(options) {
|
|
|
17710
17814
|
dependencies,
|
|
17711
17815
|
...toolchain ? { devDependencies: toolchain.devDependencies } : {}
|
|
17712
17816
|
}, null, 2)}\n`),
|
|
17713
|
-
writeFile(path$1.join(directory, "pnpm-workspace.yaml"),
|
|
17714
|
-
packages: [],
|
|
17715
|
-
minimumReleaseAgeExclude: manifest.packages.map((pkg) => `${pkg.name}@${pkg.version}`)
|
|
17716
|
-
}, null, 2)}\n`),
|
|
17817
|
+
writeFile(path$1.join(directory, "pnpm-workspace.yaml"), consumerWorkspace(manifest.packages)),
|
|
17717
17818
|
writeFile(path$1.join(directory, "user.npmrc"), ""),
|
|
17718
17819
|
writeFile(path$1.join(directory, "global.npmrc"), "")
|
|
17719
17820
|
]);
|
|
@@ -18840,11 +18941,11 @@ function playwrightFiles(settings) {
|
|
|
18840
18941
|
"typecheck": "tsc --noEmit"
|
|
18841
18942
|
};
|
|
18842
18943
|
const dependencies = {
|
|
18843
|
-
"@playwright/test": "1.
|
|
18944
|
+
"@playwright/test": "1.65.0",
|
|
18844
18945
|
"@types/node": "^22.0.0",
|
|
18845
|
-
"eslint": "^10.
|
|
18946
|
+
"eslint": "^10.14.0",
|
|
18846
18947
|
"repoctl": `^${version$1}`,
|
|
18847
|
-
"typescript": "^6.0.
|
|
18948
|
+
"typescript": "^6.0.3",
|
|
18848
18949
|
[target.name]: "workspace:*"
|
|
18849
18950
|
};
|
|
18850
18951
|
const targetUrl = `${path.relative(workspace.directory, target.directory).split("/").map(encodeURIComponent).join("/")}/`;
|
|
@@ -18955,7 +19056,7 @@ function playwrightWorkflow({ workspace }) {
|
|
|
18955
19056
|
{ uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" },
|
|
18956
19057
|
{ uses: "pnpm/action-setup@9bbca1e9dc2902adb87e8780fe5c98796985a62d" },
|
|
18957
19058
|
{
|
|
18958
|
-
uses: "actions/setup-node@
|
|
19059
|
+
uses: "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1",
|
|
18959
19060
|
with: { "node-version": defaultNodeVersion }
|
|
18960
19061
|
},
|
|
18961
19062
|
{
|
|
@@ -18985,7 +19086,7 @@ function playwrightWorkflow({ workspace }) {
|
|
|
18985
19086
|
{
|
|
18986
19087
|
name: "Upload report and failure traces",
|
|
18987
19088
|
if: ["$", "{{ always() }}"].join(""),
|
|
18988
|
-
uses: "actions/upload-artifact@
|
|
19089
|
+
uses: "actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9",
|
|
18989
19090
|
with: {
|
|
18990
19091
|
"name": workspace.name.replace(/[^a-z0-9-]/gi, "-"),
|
|
18991
19092
|
"path": `${workspace.directory}/playwright-report\n${workspace.directory}/test-results`,
|
|
@@ -19320,18 +19421,18 @@ function storybookFiles(settings) {
|
|
|
19320
19421
|
"typecheck": "tsc --noEmit"
|
|
19321
19422
|
};
|
|
19322
19423
|
const dependencies = {
|
|
19323
|
-
"@storybook/addon-vitest": "10.6.
|
|
19324
|
-
[`@storybook/${framework}`]: "10.6.
|
|
19424
|
+
"@storybook/addon-vitest": "10.6.7",
|
|
19425
|
+
[`@storybook/${framework}`]: "10.6.7",
|
|
19325
19426
|
"@types/node": "^22.0.0",
|
|
19326
|
-
"@vitest/browser-playwright": "5.0
|
|
19327
|
-
[`@vitejs/plugin-${options.framework}`]: options.framework === "vue" ? "^6.0.
|
|
19328
|
-
"eslint": "^10.
|
|
19329
|
-
"playwright": "1.
|
|
19427
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
19428
|
+
[`@vitejs/plugin-${options.framework}`]: options.framework === "vue" ? "^6.0.10" : "^6.3.0",
|
|
19429
|
+
"eslint": "^10.14.0",
|
|
19430
|
+
"playwright": "1.65.0",
|
|
19330
19431
|
"repoctl": `^${version$1}`,
|
|
19331
|
-
"storybook": "10.6.
|
|
19432
|
+
"storybook": "10.6.7",
|
|
19332
19433
|
"typescript": "^6.0.3",
|
|
19333
|
-
"vite": "^8.3.
|
|
19334
|
-
"vitest": "5.0
|
|
19434
|
+
"vite": "^8.3.8",
|
|
19435
|
+
"vitest": "5.1.0",
|
|
19335
19436
|
[options.framework]: runtimeRange,
|
|
19336
19437
|
[target.name]: "workspace:*"
|
|
19337
19438
|
};
|
|
@@ -19466,7 +19567,7 @@ function storybookWorkflow({ workspace }) {
|
|
|
19466
19567
|
{ uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" },
|
|
19467
19568
|
{ uses: "pnpm/action-setup@9bbca1e9dc2902adb87e8780fe5c98796985a62d" },
|
|
19468
19569
|
{
|
|
19469
|
-
uses: "actions/setup-node@
|
|
19570
|
+
uses: "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1",
|
|
19470
19571
|
with: { "node-version": defaultNodeVersion }
|
|
19471
19572
|
},
|
|
19472
19573
|
{
|
|
@@ -19496,7 +19597,7 @@ function storybookWorkflow({ workspace }) {
|
|
|
19496
19597
|
{
|
|
19497
19598
|
name: "Upload static stories and test report",
|
|
19498
19599
|
if: ["$", "{{ always() }}"].join(""),
|
|
19499
|
-
uses: "actions/upload-artifact@
|
|
19600
|
+
uses: "actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9",
|
|
19500
19601
|
with: {
|
|
19501
19602
|
"name": workspace.name.replace(/[^a-z0-9-]/gi, "-"),
|
|
19502
19603
|
"path": `${workspace.directory}/storybook-static\n${workspace.directory}/test-results`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Lt as clearWorkspaceCache, rt as hash, zt as getWorkspacePackageSummaries } from "./workspace-tasks-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { knipRoot } from "./plan-
|
|
1
|
+
import { Lt as clearWorkspaceCache, rt as hash, zt as getWorkspacePackageSummaries } from "./workspace-tasks-DucdLmBS.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-Pn_oLgyr.mjs";
|
|
3
|
+
import { knipRoot } from "./plan-C4S0SIsH.mjs";
|
|
4
4
|
// 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 { $t as resolveCreateNewProjectPlan, Qt as defaultTemplate, Zt as createNewProject, in as createTemplateCatalog, on as loadTemplateCatalogContext } from "./commands-
|
|
2
|
-
import { d as logger } from "./execute-
|
|
3
|
-
import { Et as fs$1, _t as localize } from "./workspace-tasks-
|
|
1
|
+
import { $t as resolveCreateNewProjectPlan, Qt as defaultTemplate, Zt as createNewProject, in as createTemplateCatalog, on as loadTemplateCatalogContext } from "./commands-B1PJUmy-.mjs";
|
|
2
|
+
import { d as logger } from "./execute-CowTATMR.mjs";
|
|
3
|
+
import { Et as fs$1, _t as localize } from "./workspace-tasks-DucdLmBS.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
|
-
import {
|
|
2
|
-
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-
|
|
3
|
-
import { t as scanDependencies } from "./scan-
|
|
4
|
-
import { Lt as clearWorkspaceCache, _t as localize } from "./workspace-tasks-
|
|
1
|
+
import { it as __exportAll } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-Cpnd5xhK.mjs";
|
|
3
|
+
import { t as scanDependencies } from "./scan-C6ZqUxK0.mjs";
|
|
4
|
+
import { Lt as clearWorkspaceCache, _t as localize } from "./workspace-tasks-DucdLmBS.mjs";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
|
6
6
|
// src/commands/deps/apply.ts
|
|
7
7
|
async function applyDependencyFixPlan(cwd, plan) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as logger, t as runCheckWithReport } from "./execute-
|
|
2
|
-
import { Et as fs, _t as localize } from "./workspace-tasks-
|
|
1
|
+
import { d as logger, t as runCheckWithReport } from "./execute-CowTATMR.mjs";
|
|
2
|
+
import { Et as fs, _t as localize } from "./workspace-tasks-DucdLmBS.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 { d as loadMonorepoConfig } from "./tsconfig-
|
|
2
|
-
import { Et as fs$1, H as signalExitCode, J as getWorkspaceGraph, V as executeCheckTask, Z as getWorkspaceImpact, _t as localize, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-
|
|
1
|
+
import { d as loadMonorepoConfig } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { Et as fs$1, H as signalExitCode, J as getWorkspaceGraph, V as executeCheckTask, Z as getWorkspaceImpact, _t as localize, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-DucdLmBS.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { createConsola } from "consola";
|
|
5
5
|
import { execFileSync, spawnSync } from "node:child_process";
|