@uniweb/build 0.14.31 → 0.14.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "0.14.31",
3
+ "version": "0.14.32",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -59,13 +59,13 @@
59
59
  "js-yaml": "^4.1.0",
60
60
  "sharp": "^0.33.2",
61
61
  "yaml": "^2.5.0",
62
- "@uniweb/content-writer": "0.2.6",
63
- "@uniweb/theming": "0.1.8"
62
+ "@uniweb/theming": "0.1.8",
63
+ "@uniweb/content-writer": "0.2.6"
64
64
  },
65
65
  "optionalDependencies": {
66
66
  "@uniweb/runtime": "0.8.26",
67
- "@uniweb/schemas": "0.2.4",
68
- "@uniweb/content-reader": "1.1.12"
67
+ "@uniweb/content-reader": "1.1.12",
68
+ "@uniweb/schemas": "0.2.4"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -23,22 +23,21 @@
23
23
  * @returns {string} YAML fragment, no trailing newline.
24
24
  */
25
25
  /**
26
- * Fallback pnpm major, used only when a caller omits `pnpmVersion`.
26
+ * Fallback pnpm major, for callers that don't supply one.
27
27
  *
28
- * The CLI is the authority it resolves the major from the project's
29
- * `packageManager` field (see `versions.js::resolveCiPnpmVersion`) and
30
- * always passes it, so this value does not apply on the normal path. It
31
- * exists for direct API and test callers.
28
+ * **Must equal the CLI's `versions.js::PNPM_VERSION`.** This is a copy
29
+ * across a package boundary — `@uniweb/build` cannot import from the CLI,
30
+ * since the dependency runs the other way and copies drift. This one
31
+ * drifted twice in a week: stale at '11' when the CLI moved to '10', then
32
+ * stale at '10' when it moved back to '11'.
32
33
  *
33
- * `@uniweb/build` cannot import the CLI's constant (the CLI depends on
34
- * this package, not the reverse), so this is a deliberate duplicate.
35
- * Keeping ONE copy here rather than one per adapter is the point:
36
- * the adapters previously each defaulted to '11' and drifted out of sync
37
- * with the CLI when it moved to '10', leaving five stale fallbacks that
38
- * would have silently generated an uninstallable workflow for any caller
39
- * that omitted the argument.
34
+ * The CLI always passes an explicit value, so this never applies on the
35
+ * normal path; it exists for direct API and test callers. Drift is caught
36
+ * by a CLI-side test that generates a workflow *without* passing a version
37
+ * and asserts the emitted major matches `PNPM_VERSION` i.e. the guard
38
+ * lives at the boundary where the two values have to agree.
40
39
  */
41
- const FALLBACK_PNPM_VERSION = '10'
40
+ const FALLBACK_PNPM_VERSION = '11'
42
41
 
43
42
  export function setupSteps({
44
43
  packageManager = 'pnpm',