@platforma-sdk/block-tools 2.17.7 → 2.17.9

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.
@@ -22,6 +22,7 @@
22
22
  import {
23
23
  ensureCatalogAbsent,
24
24
  ensureCatalogAtLeast,
25
+ ensureCatalogVersion,
25
26
  ensureWorkspaceListItems,
26
27
  ensureWorkspaceMapEntries,
27
28
  ensureWorkspaceModulePaths,
@@ -77,6 +78,7 @@ for (const name of SDK_CATALOG_PACKAGES) {
77
78
  export const INFRA_CATALOG_FLOOR: Record<string, string> = {
78
79
  turbo: TURBO_VERSION,
79
80
  shx: "~0.4.0",
81
+ "cross-env": "~10.1.0",
80
82
  "@changesets/cli": "~2.29.8",
81
83
  vitest: "~4.0.18",
82
84
  typescript: "~5.9.3",
@@ -132,12 +134,27 @@ export function rootPnpmWorkspaceInitial(ctx: RunContext): Record<string, unknow
132
134
  };
133
135
  }
134
136
 
135
- export function rootPnpmWorkspaceRules(): void {
136
- ensureWorkspaceModulePaths();
137
+ export function rootPnpmWorkspaceToolchainRules(): void {
137
138
  ensureWorkspaceListItems("minimumReleaseAgeExclude", MINIMUM_RELEASE_AGE_EXCLUDE);
138
139
  ensureWorkspaceMapEntries("allowBuilds", SKIPPED_BUILDS, { keepExisting: true });
139
140
  ensureWorkspaceMapEntries("allowBuilds", REQUIRED_BUILDS);
141
+ // Curated infra floor, ADD-IF-ABSENT. This runs on EVERY refresh, not just
142
+ // init/update-deps, because the package.json rules hand out `catalog:`
143
+ // references for these on every refresh too (root devDeps: turbo, shx,
144
+ // cross-env, …). Seeding only on init/update-deps left a default refresh
145
+ // writing a `catalog:` for a key the catalog did not yet carry, and
146
+ // `pnpm install` then failed with ERR_PNPM_CATALOG_ENTRY_NOT_FOUND_FOR_SPEC.
147
+ // Add-if-absent keeps the refresh contract intact: a version the block
148
+ // already pins is never touched, and a seeded key is a fixpoint.
149
+ for (const [name, version] of Object.entries(INFRA_CATALOG_FLOOR)) {
150
+ ensureCatalogVersion(name, version);
151
+ }
140
152
  ensureCatalogAtLeast("turbo", TURBO_VERSION);
153
+ }
154
+
155
+ export function rootPnpmWorkspaceRules(): void {
156
+ ensureWorkspaceModulePaths();
157
+ rootPnpmWorkspaceToolchainRules();
141
158
  // Catalog side of the retired-dep cleanup — the per-package side sheds the
142
159
  // matching `catalog:` references.
143
160
  for (const name of RETIRED_TOOLCHAIN_DEPS) ensureCatalogAbsent(name);
@@ -28,8 +28,6 @@ export const REQUIRED_BUILDS: Record<string, boolean> = {
28
28
  /** Install scripts in the SDK tree that only clean up, print, or build optional native code. */
29
29
  export const SKIPPED_BUILDS: Record<string, boolean> = {
30
30
  "@milaboratories/tengo-tester": false,
31
- "cpu-features": false,
32
31
  esbuild: false,
33
32
  protobufjs: false,
34
- ssh2: false,
35
33
  };