@icebreakers/monorepo 6.5.3 → 6.6.0
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-CeEzfoW8.mjs → commands-DWtDkzcp.mjs} +190 -90
- package/dist/{config-CT_nsp4o.mjs → config-CmB-5xZ5.mjs} +3 -3
- package/dist/{create-flow-Dw27OLYT.mjs → create-flow-DNWJQGrz.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 +4 -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",
|
|
@@ -14112,6 +14112,19 @@ async function readWranglerVersion(filename, worker, environment) {
|
|
|
14112
14112
|
return [...versions][0];
|
|
14113
14113
|
}
|
|
14114
14114
|
// src/commands/docs/providers/index.ts
|
|
14115
|
+
const providerConfirmationDelays = [
|
|
14116
|
+
2e3,
|
|
14117
|
+
4e3,
|
|
14118
|
+
8e3,
|
|
14119
|
+
16e3
|
|
14120
|
+
];
|
|
14121
|
+
async function confirmUploadedVersion(options, client, deploymentId, expectedVersionId) {
|
|
14122
|
+
for (const delay of [0, ...providerConfirmationDelays]) {
|
|
14123
|
+
if (delay > 0) await (options.sleep?.(delay) ?? new Promise((resolve) => setTimeout(resolve, delay)));
|
|
14124
|
+
if (await activeMatchingVersion(client, deploymentId) === expectedVersionId) return;
|
|
14125
|
+
}
|
|
14126
|
+
throw new DocsDiagnosticError("provider-version-inactive");
|
|
14127
|
+
}
|
|
14115
14128
|
/** Select a closed provider contract without changing script targets or frozen plan identities. */
|
|
14116
14129
|
async function prepareDocsProvider(options, source, site, plan, env, resultFile, operation) {
|
|
14117
14130
|
const target = site[plan.channel];
|
|
@@ -14147,7 +14160,7 @@ async function prepareDocsProvider(options, source, site, plan, env, resultFile,
|
|
|
14147
14160
|
deploymentMessage(plan.deploymentId)
|
|
14148
14161
|
], wranglerEnvironment(env, target.accountId, config.environment, output));
|
|
14149
14162
|
versionId = await readWranglerVersion(output, target.workerName, config.environment);
|
|
14150
|
-
|
|
14163
|
+
await confirmUploadedVersion(options, client, plan.deploymentId, versionId);
|
|
14151
14164
|
} finally {
|
|
14152
14165
|
await rm(temporary, {
|
|
14153
14166
|
recursive: true,
|
|
@@ -16099,6 +16112,23 @@ async function checkProjectReferences(cwd) {
|
|
|
16099
16112
|
async function syncProjectReferences(cwd) {
|
|
16100
16113
|
return applyProjectReferencesPlan(await planProjectReferences(cwd));
|
|
16101
16114
|
}
|
|
16115
|
+
// src/commands/release/snapshot/install.ts
|
|
16116
|
+
function snapshotInstallation(packages, registry) {
|
|
16117
|
+
const args = [
|
|
16118
|
+
"add",
|
|
16119
|
+
...packages.map((pkg) => `${pkg.name}@${pkg.version}`),
|
|
16120
|
+
"--registry",
|
|
16121
|
+
registry
|
|
16122
|
+
];
|
|
16123
|
+
const quote = (value) => /^[\w@./:-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
16124
|
+
return {
|
|
16125
|
+
install: {
|
|
16126
|
+
executable: "pnpm",
|
|
16127
|
+
args
|
|
16128
|
+
},
|
|
16129
|
+
installCommand: `pnpm ${args.map(quote).join(" ")}`
|
|
16130
|
+
};
|
|
16131
|
+
}
|
|
16102
16132
|
// src/commands/release/snapshot/source/paths.ts
|
|
16103
16133
|
/** 产物和 Git tree 使用逻辑路径;只在文件系统边界转换分隔符。 */
|
|
16104
16134
|
function sourceRelativePath(value) {
|
|
@@ -16226,13 +16256,6 @@ async function createSnapshotPlan(options) {
|
|
|
16226
16256
|
...options,
|
|
16227
16257
|
cwd: source
|
|
16228
16258
|
});
|
|
16229
|
-
const installArgs = [
|
|
16230
|
-
"add",
|
|
16231
|
-
...packages.map((pkg) => `${pkg.name}@${pkg.version}`),
|
|
16232
|
-
"--registry",
|
|
16233
|
-
registry.href
|
|
16234
|
-
];
|
|
16235
|
-
const quote = (value) => /^[\w@./:-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
16236
16259
|
return {
|
|
16237
16260
|
schemaVersion: 1,
|
|
16238
16261
|
identity,
|
|
@@ -16245,11 +16268,7 @@ async function createSnapshotPlan(options) {
|
|
|
16245
16268
|
status: "planned",
|
|
16246
16269
|
packages,
|
|
16247
16270
|
nativePlan,
|
|
16248
|
-
|
|
16249
|
-
executable: "pnpm",
|
|
16250
|
-
args: installArgs
|
|
16251
|
-
},
|
|
16252
|
-
installCommand: `pnpm ${installArgs.map(quote).join(" ")}`
|
|
16271
|
+
...snapshotInstallation(packages, registry.href)
|
|
16253
16272
|
};
|
|
16254
16273
|
}
|
|
16255
16274
|
// src/commands/release/snapshot/source/archive.ts
|
|
@@ -16660,6 +16679,14 @@ async function releaseSnapshot(options) {
|
|
|
16660
16679
|
await checkpoint();
|
|
16661
16680
|
return report;
|
|
16662
16681
|
}
|
|
16682
|
+
// src/commands/release/consumer/workspace.ts
|
|
16683
|
+
/** 使用可原位编辑的 YAML,允许 pnpm 为新依赖追加精确版本例外。 */
|
|
16684
|
+
function consumerWorkspace(packages) {
|
|
16685
|
+
return stringify({
|
|
16686
|
+
packages: [],
|
|
16687
|
+
...packages ? { minimumReleaseAgeExclude: packages.map((pkg) => `${pkg.name}@${pkg.version}`) } : {}
|
|
16688
|
+
}, { collectionStyle: "block" });
|
|
16689
|
+
}
|
|
16663
16690
|
// src/commands/release/nightly/consumer/missing-version.ts
|
|
16664
16691
|
function isRecord(value) {
|
|
16665
16692
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -16816,10 +16843,7 @@ async function verifyNightlyConsumer(report, options) {
|
|
|
16816
16843
|
};
|
|
16817
16844
|
await Promise.all([
|
|
16818
16845
|
writeFile(path$1.join(directory, "package.json"), `${JSON.stringify(manifest, null, 2)}\n`),
|
|
16819
|
-
writeFile(path$1.join(directory, "pnpm-workspace.yaml"),
|
|
16820
|
-
packages: [],
|
|
16821
|
-
...report.provider === "npm" ? { minimumReleaseAgeExclude: report.packages.map((pkg) => `${pkg.name}@${pkg.version}`) } : {}
|
|
16822
|
-
}, null, 2)}\n`),
|
|
16846
|
+
writeFile(path$1.join(directory, "pnpm-workspace.yaml"), consumerWorkspace(report.provider === "npm" ? report.packages : void 0)),
|
|
16823
16847
|
writeFile(path$1.join(directory, "user.npmrc"), ""),
|
|
16824
16848
|
writeFile(path$1.join(directory, "global.npmrc"), "")
|
|
16825
16849
|
]);
|
|
@@ -16951,10 +16975,30 @@ function nightlyQualityCommand(report, options, executable, args, timeout = defa
|
|
|
16951
16975
|
}
|
|
16952
16976
|
return nightlyCommand(report, options, executable, args, timeout);
|
|
16953
16977
|
}
|
|
16954
|
-
// src/commands/release/nightly/
|
|
16978
|
+
// src/commands/release/nightly/versioning/date.ts
|
|
16979
|
+
function nightlyBaseVersion(version) {
|
|
16980
|
+
const parsed = parse(version);
|
|
16981
|
+
if (!parsed) throw new Error(`Invalid nightly base version: ${version}.`);
|
|
16982
|
+
return `${parsed.major}.${parsed.minor}.${parsed.patch}`;
|
|
16983
|
+
}
|
|
16984
|
+
/** Accept only canonical SemVer with a real UTC calendar date and safe counter. */
|
|
16985
|
+
function parseDateNightlyVersion(version) {
|
|
16986
|
+
const match = /^(\d+\.\d+\.\d+)-dev\.(\d{4})(\d{2})(\d{2})\.([1-9]\d*)$/u.exec(version);
|
|
16987
|
+
if (!match || !valid(version)) return null;
|
|
16988
|
+
const date = `${match[2]}${match[3]}${match[4]}`;
|
|
16989
|
+
const instant = /* @__PURE__ */ new Date(`${match[2]}-${match[3]}-${match[4]}T00:00:00.000Z`);
|
|
16990
|
+
const sequence = Number(match[5]);
|
|
16991
|
+
if (!Number.isFinite(instant.getTime()) || instant.toISOString().slice(0, 10).replaceAll("-", "") !== date || !Number.isSafeInteger(sequence)) return null;
|
|
16992
|
+
return {
|
|
16993
|
+
base: match[1],
|
|
16994
|
+
date,
|
|
16995
|
+
sequence
|
|
16996
|
+
};
|
|
16997
|
+
}
|
|
16998
|
+
// src/commands/release/nightly/providers/npm/registry.ts
|
|
16955
16999
|
const registry = "https://registry.npmjs.org/";
|
|
16956
|
-
const
|
|
16957
|
-
function
|
|
17000
|
+
const nightlyTag = "snapshot-nightly";
|
|
17001
|
+
function registryObject(value) {
|
|
16958
17002
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
16959
17003
|
}
|
|
16960
17004
|
function createNightlyRegistry(options) {
|
|
@@ -16964,35 +17008,58 @@ function createNightlyRegistry(options) {
|
|
|
16964
17008
|
let response;
|
|
16965
17009
|
try {
|
|
16966
17010
|
response = await (options.registryFetch ?? fetch)(new URL(pathname, registry), {
|
|
16967
|
-
|
|
17011
|
+
redirect: "error",
|
|
17012
|
+
headers: {
|
|
17013
|
+
"accept": "application/json",
|
|
17014
|
+
"cache-control": "no-cache"
|
|
17015
|
+
},
|
|
16968
17016
|
signal: AbortSignal.timeout(Math.max(1, Math.floor(timeout)))
|
|
16969
17017
|
});
|
|
16970
17018
|
} catch {
|
|
16971
17019
|
throw new Error(`Nightly registry request failed for ${pathname}; publication state is unknown.`);
|
|
16972
17020
|
}
|
|
16973
|
-
if (response.status === 404)
|
|
16974
|
-
|
|
17021
|
+
if (response.status === 404) {
|
|
17022
|
+
await response.body?.cancel();
|
|
17023
|
+
return null;
|
|
17024
|
+
}
|
|
17025
|
+
if (!response.ok) {
|
|
17026
|
+
await response.body?.cancel();
|
|
17027
|
+
throw new Error(`Nightly registry returned HTTP ${response.status} for ${pathname}; publication state is unknown.`);
|
|
17028
|
+
}
|
|
16975
17029
|
const value = await response.json().catch(() => null);
|
|
16976
|
-
if (!
|
|
17030
|
+
if (!registryObject(value)) throw new Error(`Nightly registry returned invalid metadata for ${pathname}.`);
|
|
16977
17031
|
return value;
|
|
16978
17032
|
}
|
|
16979
|
-
return {
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
17033
|
+
return {
|
|
17034
|
+
async versions(name) {
|
|
17035
|
+
const metadata = await request(encodeURIComponent(name));
|
|
17036
|
+
if (!metadata) return [];
|
|
17037
|
+
if (metadata["name"] !== name || !registryObject(metadata["versions"])) throw new Error(`Nightly registry returned invalid version history for ${name}.`);
|
|
17038
|
+
return Object.entries(metadata["versions"]).map(([version, entry]) => {
|
|
17039
|
+
if (!valid(version) || !registryObject(entry) || entry["name"] !== name || entry["version"] !== version) throw new Error(`Nightly registry version history does not match ${name}@${version}.`);
|
|
17040
|
+
return entry;
|
|
17041
|
+
});
|
|
17042
|
+
},
|
|
17043
|
+
async publication(name, allowMissingVersion = false, deadline) {
|
|
17044
|
+
const tags = await request(`-/package/${encodeURIComponent(name)}/dist-tags`, deadline);
|
|
17045
|
+
if (tags && Object.values(tags).some((value) => typeof value !== "string" || !value)) throw new Error(`Nightly registry returned invalid dist-tags for ${name}.`);
|
|
17046
|
+
const version = tags?.[nightlyTag];
|
|
17047
|
+
const metadata = version ? await request(`${encodeURIComponent(name)}/${encodeURIComponent(version)}`, deadline) : null;
|
|
17048
|
+
if (version && !metadata && !allowMissingVersion) throw new Error(`Nightly tag for ${name} points at unavailable metadata; publication state is unknown.`);
|
|
17049
|
+
if (metadata && (metadata["name"] !== name || metadata["version"] !== version)) throw new Error(`Nightly registry metadata does not match ${name}@${version}.`);
|
|
17050
|
+
return {
|
|
17051
|
+
latest: tags?.["latest"] ?? null,
|
|
17052
|
+
version: version ?? null,
|
|
17053
|
+
metadata
|
|
17054
|
+
};
|
|
17055
|
+
}
|
|
17056
|
+
};
|
|
16992
17057
|
}
|
|
17058
|
+
// src/commands/release/nightly/providers/npm/identity.ts
|
|
17059
|
+
/** Naming is independent of identity; both formats require the same immutable evidence. */
|
|
16993
17060
|
function validPublishedIdentity(metadata) {
|
|
16994
17061
|
const value = metadata?.repoctlSnapshot;
|
|
16995
|
-
if (!
|
|
17062
|
+
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;
|
|
16996
17063
|
const identity = {
|
|
16997
17064
|
kind: "nightly",
|
|
16998
17065
|
commit: value["commit"],
|
|
@@ -17003,14 +17070,19 @@ function validPublishedIdentity(metadata) {
|
|
|
17003
17070
|
cwd: "",
|
|
17004
17071
|
identity
|
|
17005
17072
|
});
|
|
17006
|
-
|
|
17073
|
+
if (value["identityKey"] !== key || !metadata || !valid(metadata.version)) return null;
|
|
17074
|
+
const daily = parseDateNightlyVersion(metadata.version);
|
|
17075
|
+
const legacy = metadata.version.endsWith(`-snapshot.nightly.c${identity.commit}.b${key}`);
|
|
17076
|
+
return daily || legacy ? {
|
|
17007
17077
|
...identity,
|
|
17008
|
-
key
|
|
17078
|
+
key,
|
|
17079
|
+
batch: daily ? `date:${daily.date}.${daily.sequence}` : "snapshot"
|
|
17009
17080
|
} : null;
|
|
17010
17081
|
} catch {
|
|
17011
17082
|
return null;
|
|
17012
17083
|
}
|
|
17013
17084
|
}
|
|
17085
|
+
// src/commands/release/nightly/providers/npm/index.ts
|
|
17014
17086
|
/** Freeze latest before upload and skip only a complete channel sharing one build. */
|
|
17015
17087
|
async function inspectNpmNightly(report, options) {
|
|
17016
17088
|
const client = createNightlyRegistry(options);
|
|
@@ -17025,8 +17097,9 @@ async function inspectNpmNightly(report, options) {
|
|
|
17025
17097
|
complete = false;
|
|
17026
17098
|
continue;
|
|
17027
17099
|
}
|
|
17028
|
-
|
|
17029
|
-
|
|
17100
|
+
const batch = `${identity.key}:${identity.batch}`;
|
|
17101
|
+
sharedIdentity ??= batch;
|
|
17102
|
+
if (batch !== sharedIdentity) complete = false;
|
|
17030
17103
|
}
|
|
17031
17104
|
return complete;
|
|
17032
17105
|
}
|
|
@@ -17195,8 +17268,8 @@ function formatNightlySummary(report) {
|
|
|
17195
17268
|
if (report.reason || report.error) lines.push(escape(report.error ?? report.reason), "");
|
|
17196
17269
|
if (verified) {
|
|
17197
17270
|
lines.push("Install the complete batch (including internal peers):", "", `\`pnpm add ${report.packages.map((pkg) => escape(pkg.locator)).join(" ")}\``, "");
|
|
17198
|
-
lines.push("| Package | Install |", "| --- | --- |");
|
|
17199
|
-
for (const pkg of report.packages) lines.push(`| ${escape(pkg.name)} | \`pnpm add ${escape(pkg.locator)}\` |`);
|
|
17271
|
+
lines.push("| Package | Version | Install |", "| --- | --- | --- |");
|
|
17272
|
+
for (const pkg of report.packages) lines.push(`| ${escape(pkg.name)} | \`${escape(pkg.version)}\` | \`pnpm add ${escape(pkg.locator)}\` |`);
|
|
17200
17273
|
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.", "");
|
|
17201
17274
|
} else if (report.status === "prepared") lines.push("Artifacts are prepared and validated. Publication was not requested.", "");
|
|
17202
17275
|
else if (report.status === "failed" && report.confirmed && report.consumer?.status === "failed") {
|
|
@@ -17208,6 +17281,32 @@ function formatNightlySummary(report) {
|
|
|
17208
17281
|
async function writeNightlySummary(report, filename) {
|
|
17209
17282
|
if (filename) await appendFile(filename, formatNightlySummary(report));
|
|
17210
17283
|
}
|
|
17284
|
+
// src/commands/release/nightly/versioning/index.ts
|
|
17285
|
+
/** Freeze one batch before building. Published versions reserve counters even if their tags moved. */
|
|
17286
|
+
async function planDateNightlyVersions(report, options) {
|
|
17287
|
+
const date = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replaceAll("-", "");
|
|
17288
|
+
const registry = createNightlyRegistry(options);
|
|
17289
|
+
let maximum = 0;
|
|
17290
|
+
let recovered;
|
|
17291
|
+
for (const pkg of report.packages) {
|
|
17292
|
+
const versions = await registry.versions(pkg.name);
|
|
17293
|
+
for (const metadata of versions) {
|
|
17294
|
+
const daily = parseDateNightlyVersion(metadata.version);
|
|
17295
|
+
if (daily?.date === date) maximum = Math.max(maximum, daily.sequence);
|
|
17296
|
+
if (!registryObject(metadata.repoctlSnapshot) || metadata.repoctlSnapshot["identityKey"] !== report.identityKey) continue;
|
|
17297
|
+
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.`);
|
|
17298
|
+
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.");
|
|
17299
|
+
recovered = daily;
|
|
17300
|
+
}
|
|
17301
|
+
}
|
|
17302
|
+
const batch = recovered ?? {
|
|
17303
|
+
date,
|
|
17304
|
+
sequence: maximum + 1
|
|
17305
|
+
};
|
|
17306
|
+
if (!Number.isSafeInteger(batch.sequence)) throw new TypeError("Nightly daily version sequence exceeds the safe integer limit.");
|
|
17307
|
+
for (const pkg of report.packages) pkg.version = `${nightlyBaseVersion(pkg.version)}-dev.${batch.date}.${batch.sequence}`;
|
|
17308
|
+
Object.assign(report, snapshotInstallation(report.packages, report.registry));
|
|
17309
|
+
}
|
|
17211
17310
|
// src/commands/release/nightly/index.ts
|
|
17212
17311
|
function updatePackages(report) {
|
|
17213
17312
|
report.packages = report.snapshot.packages.map((pkg) => ({
|
|
@@ -17276,6 +17375,10 @@ async function nightly(options, execute) {
|
|
|
17276
17375
|
report.reason = "Every public package already matches this commit and the same nightly build identity.";
|
|
17277
17376
|
return report;
|
|
17278
17377
|
}
|
|
17378
|
+
if (config.versioning === "date") {
|
|
17379
|
+
await planDateNightlyVersions(report.snapshot, options);
|
|
17380
|
+
updatePackages(report);
|
|
17381
|
+
}
|
|
17279
17382
|
if (!execute || options.dryRun) return report;
|
|
17280
17383
|
if (options.publish) {
|
|
17281
17384
|
await assertSnapshotAuthorization(snapshotOptions);
|
|
@@ -17382,8 +17485,8 @@ async function createReleasePlan(options) {
|
|
|
17382
17485
|
}
|
|
17383
17486
|
// src/commands/release/snapshot/prepared/validate.ts
|
|
17384
17487
|
function validatePackedManifest(value, pkg, plan) {
|
|
17385
|
-
const manifest = object$
|
|
17386
|
-
const publish = object$
|
|
17488
|
+
const manifest = object$1(value);
|
|
17489
|
+
const publish = object$1(manifest["publishConfig"]);
|
|
17387
17490
|
if (Object.keys(publish).some((key) => ![
|
|
17388
17491
|
"registry",
|
|
17389
17492
|
"tag",
|
|
@@ -17399,7 +17502,7 @@ function validatePackedManifest(value, pkg, plan) {
|
|
|
17399
17502
|
"optionalDependencies",
|
|
17400
17503
|
"peerDependencies",
|
|
17401
17504
|
"devDependencies"
|
|
17402
|
-
]) if (manifest[field] !== void 0 && Object.entries(object$
|
|
17505
|
+
]) 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}.`);
|
|
17403
17506
|
const seen = /* @__PURE__ */ new Set();
|
|
17404
17507
|
for (const reference of dependencyReferences(manifest, ".", true)) {
|
|
17405
17508
|
if (reference.protocol !== "registry" || !packageName(reference.name) || !validRange(reference.range)) throw new Error(`Prepared snapshot contains an unsupported dependency: ${pkg.name} ${reference.alias}.`);
|
|
@@ -17417,7 +17520,7 @@ function validatePackedManifest(value, pkg, plan) {
|
|
|
17417
17520
|
/** Inspect data and bytes only. Never extract, load configuration, install or execute candidate code. */
|
|
17418
17521
|
async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
17419
17522
|
const plan = validateSnapshotBuildPlan(trustedPlan);
|
|
17420
|
-
const manifest = object$
|
|
17523
|
+
const manifest = object$1(value);
|
|
17421
17524
|
exactKeys(manifest, [
|
|
17422
17525
|
"schemaVersion",
|
|
17423
17526
|
"plan",
|
|
@@ -17429,12 +17532,12 @@ async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
|
17429
17532
|
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.");
|
|
17430
17533
|
const encoded = files.get("snapshot-manifest.json");
|
|
17431
17534
|
if (!encoded || canonicalSnapshotJson(JSON.parse(new TextDecoder().decode(encoded))) !== canonicalSnapshotJson(manifest)) throw new Error("Prepared snapshot manifest bytes do not match the supplied manifest.");
|
|
17432
|
-
const checks = object$
|
|
17535
|
+
const checks = object$1(manifest["checks"]);
|
|
17433
17536
|
exactKeys(checks, ["build", "packages"]);
|
|
17434
17537
|
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.");
|
|
17435
17538
|
const expectedFiles = /* @__PURE__ */ new Set(["snapshot-manifest.json"]);
|
|
17436
17539
|
for (const [index, pkg] of plan.packages.entries()) {
|
|
17437
|
-
const artifact = object$
|
|
17540
|
+
const artifact = object$1(manifest["packages"][index]);
|
|
17438
17541
|
exactKeys(artifact, [
|
|
17439
17542
|
"name",
|
|
17440
17543
|
"version",
|
|
@@ -17451,7 +17554,7 @@ async function validatePreparedSnapshot(value, trustedPlan, files) {
|
|
|
17451
17554
|
const packed = entries.find((entry) => entry.path === "package/package.json" && entry.type === "File");
|
|
17452
17555
|
if (!packed || entries.some((entry) => entry.mode & 3584)) throw new Error(`Prepared snapshot has missing package metadata or unsafe archive permissions: ${pkg.name}.`);
|
|
17453
17556
|
validatePackedManifest(JSON.parse(packed.data.toString("utf8")), pkg, plan);
|
|
17454
|
-
const check = object$
|
|
17557
|
+
const check = object$1(checks["packages"][index]);
|
|
17455
17558
|
exactKeys(check, [
|
|
17456
17559
|
"name",
|
|
17457
17560
|
"status",
|
|
@@ -17626,12 +17729,12 @@ function snapshotPublicationReport(manifest, directory) {
|
|
|
17626
17729
|
// src/commands/release/snapshot/prepared/consumer/installed.ts
|
|
17627
17730
|
/** Validate the entire installed batch before any candidate entrypoint can run. */
|
|
17628
17731
|
async function installedSnapshotPackages(manifest, directory, applicable) {
|
|
17629
|
-
const packages = object$
|
|
17732
|
+
const packages = object$1(object$1(parse$1(await readFile(path$1.join(directory, "pnpm-lock.yaml"), "utf8")))["packages"]);
|
|
17630
17733
|
const snapshot = snapshotPublicationReport(manifest, directory);
|
|
17631
17734
|
const validated = [];
|
|
17632
17735
|
for (const pkg of manifest.packages) {
|
|
17633
17736
|
if (applicable && !applicable.has(pkg.name)) continue;
|
|
17634
|
-
if (object$
|
|
17737
|
+
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}.`);
|
|
17635
17738
|
const installed = await realpath(path$1.join(directory, "node_modules", pkg.name));
|
|
17636
17739
|
const relative = path$1.relative(directory, installed);
|
|
17637
17740
|
if (!relative || relative === ".." || relative.startsWith(`..${path$1.sep}`) || path$1.isAbsolute(relative)) throw new Error(`Snapshot consumer resolved ${pkg.name} outside its isolated directory.`);
|
|
@@ -17697,10 +17800,7 @@ async function verifyPreparedSnapshotConsumer(options) {
|
|
|
17697
17800
|
dependencies,
|
|
17698
17801
|
...toolchain ? { devDependencies: toolchain.devDependencies } : {}
|
|
17699
17802
|
}, null, 2)}\n`),
|
|
17700
|
-
writeFile(path$1.join(directory, "pnpm-workspace.yaml"),
|
|
17701
|
-
packages: [],
|
|
17702
|
-
minimumReleaseAgeExclude: manifest.packages.map((pkg) => `${pkg.name}@${pkg.version}`)
|
|
17703
|
-
}, null, 2)}\n`),
|
|
17803
|
+
writeFile(path$1.join(directory, "pnpm-workspace.yaml"), consumerWorkspace(manifest.packages)),
|
|
17704
17804
|
writeFile(path$1.join(directory, "user.npmrc"), ""),
|
|
17705
17805
|
writeFile(path$1.join(directory, "global.npmrc"), "")
|
|
17706
17806
|
]);
|
|
@@ -18827,11 +18927,11 @@ function playwrightFiles(settings) {
|
|
|
18827
18927
|
"typecheck": "tsc --noEmit"
|
|
18828
18928
|
};
|
|
18829
18929
|
const dependencies = {
|
|
18830
|
-
"@playwright/test": "1.
|
|
18930
|
+
"@playwright/test": "1.65.0",
|
|
18831
18931
|
"@types/node": "^22.0.0",
|
|
18832
|
-
"eslint": "^10.
|
|
18932
|
+
"eslint": "^10.14.0",
|
|
18833
18933
|
"repoctl": `^${version$1}`,
|
|
18834
|
-
"typescript": "^6.0.
|
|
18934
|
+
"typescript": "^6.0.3",
|
|
18835
18935
|
[target.name]: "workspace:*"
|
|
18836
18936
|
};
|
|
18837
18937
|
const targetUrl = `${path.relative(workspace.directory, target.directory).split("/").map(encodeURIComponent).join("/")}/`;
|
|
@@ -18942,7 +19042,7 @@ function playwrightWorkflow({ workspace }) {
|
|
|
18942
19042
|
{ uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" },
|
|
18943
19043
|
{ uses: "pnpm/action-setup@9bbca1e9dc2902adb87e8780fe5c98796985a62d" },
|
|
18944
19044
|
{
|
|
18945
|
-
uses: "actions/setup-node@
|
|
19045
|
+
uses: "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1",
|
|
18946
19046
|
with: { "node-version": defaultNodeVersion }
|
|
18947
19047
|
},
|
|
18948
19048
|
{
|
|
@@ -18972,7 +19072,7 @@ function playwrightWorkflow({ workspace }) {
|
|
|
18972
19072
|
{
|
|
18973
19073
|
name: "Upload report and failure traces",
|
|
18974
19074
|
if: ["$", "{{ always() }}"].join(""),
|
|
18975
|
-
uses: "actions/upload-artifact@
|
|
19075
|
+
uses: "actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9",
|
|
18976
19076
|
with: {
|
|
18977
19077
|
"name": workspace.name.replace(/[^a-z0-9-]/gi, "-"),
|
|
18978
19078
|
"path": `${workspace.directory}/playwright-report\n${workspace.directory}/test-results`,
|
|
@@ -19307,18 +19407,18 @@ function storybookFiles(settings) {
|
|
|
19307
19407
|
"typecheck": "tsc --noEmit"
|
|
19308
19408
|
};
|
|
19309
19409
|
const dependencies = {
|
|
19310
|
-
"@storybook/addon-vitest": "10.6.
|
|
19311
|
-
[`@storybook/${framework}`]: "10.6.
|
|
19410
|
+
"@storybook/addon-vitest": "10.6.7",
|
|
19411
|
+
[`@storybook/${framework}`]: "10.6.7",
|
|
19312
19412
|
"@types/node": "^22.0.0",
|
|
19313
|
-
"@vitest/browser-playwright": "5.0
|
|
19314
|
-
[`@vitejs/plugin-${options.framework}`]: options.framework === "vue" ? "^6.0.
|
|
19315
|
-
"eslint": "^10.
|
|
19316
|
-
"playwright": "1.
|
|
19413
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
19414
|
+
[`@vitejs/plugin-${options.framework}`]: options.framework === "vue" ? "^6.0.10" : "^6.3.0",
|
|
19415
|
+
"eslint": "^10.14.0",
|
|
19416
|
+
"playwright": "1.65.0",
|
|
19317
19417
|
"repoctl": `^${version$1}`,
|
|
19318
|
-
"storybook": "10.6.
|
|
19418
|
+
"storybook": "10.6.7",
|
|
19319
19419
|
"typescript": "^6.0.3",
|
|
19320
|
-
"vite": "^8.3.
|
|
19321
|
-
"vitest": "5.0
|
|
19420
|
+
"vite": "^8.3.8",
|
|
19421
|
+
"vitest": "5.1.0",
|
|
19322
19422
|
[options.framework]: runtimeRange,
|
|
19323
19423
|
[target.name]: "workspace:*"
|
|
19324
19424
|
};
|
|
@@ -19453,7 +19553,7 @@ function storybookWorkflow({ workspace }) {
|
|
|
19453
19553
|
{ uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" },
|
|
19454
19554
|
{ uses: "pnpm/action-setup@9bbca1e9dc2902adb87e8780fe5c98796985a62d" },
|
|
19455
19555
|
{
|
|
19456
|
-
uses: "actions/setup-node@
|
|
19556
|
+
uses: "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1",
|
|
19457
19557
|
with: { "node-version": defaultNodeVersion }
|
|
19458
19558
|
},
|
|
19459
19559
|
{
|
|
@@ -19483,7 +19583,7 @@ function storybookWorkflow({ workspace }) {
|
|
|
19483
19583
|
{
|
|
19484
19584
|
name: "Upload static stories and test report",
|
|
19485
19585
|
if: ["$", "{{ always() }}"].join(""),
|
|
19486
|
-
uses: "actions/upload-artifact@
|
|
19586
|
+
uses: "actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9",
|
|
19487
19587
|
with: {
|
|
19488
19588
|
"name": workspace.name.replace(/[^a-z0-9-]/gi, "-"),
|
|
19489
19589
|
"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-DWtDkzcp.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as localize } from "./workspace-tasks-
|
|
1
|
+
import { _t as localize } from "./workspace-tasks-DucdLmBS.mjs";
|
|
2
2
|
// src/commands/check/cache/format.ts
|
|
3
3
|
function label(value, markdown) {
|
|
4
4
|
return markdown ? value.replace(/[\\`*_{}[\]()#+.!|<>~-]/gu, "\\$&") : value;
|