@uniweb/build 1.7.0 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "sharp": "^0.35.3",
58
58
  "yaml": "^2.5.0",
59
59
  "@uniweb/content-reader": "~1.5.4",
60
- "@uniweb/content-writer": "~1.3.0",
60
+ "@uniweb/semantic-parser": "~1.12.2",
61
+ "@uniweb/theming": "~1.2.1",
61
62
  "@uniweb/projections": "~1.1.6",
62
63
  "@uniweb/schemas": "~1.6.0",
63
- "@uniweb/semantic-parser": "~1.12.2",
64
- "@uniweb/theming": "~1.2.0"
64
+ "@uniweb/content-writer": "~1.3.0"
65
65
  },
66
66
  "optionalDependencies": {
67
- "@uniweb/runtime": "~1.1.13"
67
+ "@uniweb/runtime": "~1.1.14"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -74,7 +74,7 @@
74
74
  "@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
75
75
  "vite-plugin-svgr": "^4.0.0",
76
76
  "@uniweb/core": "~1.4.0",
77
- "@uniweb/runtime": "~1.1.13"
77
+ "@uniweb/runtime": "~1.1.14"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "vite": {
@@ -2622,11 +2622,15 @@ export async function collectSiteContent(sitePath, options = {}) {
2622
2622
  // `base` reaches the theme because self-hosted font faces are authored
2623
2623
  // root-relative (`/fonts/x.woff2`) and the emitted @font-face lives in an
2624
2624
  // inline <style> — under a subdirectory deployment it must carry the base.
2625
- const { config: processedTheme, css: themeCSS, links: themeLinks, warnings } = buildTheme(rawThemeConfig, { foundationVars, base })
2626
-
2627
- // Log theme warnings
2628
- if (warnings?.length > 0) {
2629
- warnings.forEach(w => console.warn(`[theme] ${w}`))
2625
+ const { config: processedTheme, css: themeCSS, links: themeLinks, warnings, errors } = buildTheme(rawThemeConfig, { foundationVars, base })
2626
+
2627
+ // Log what theme.yml gets wrong — the check's findings (`errors`: a colour that
2628
+ // is not one, a key nothing reads) and what processing left out (`warnings`).
2629
+ // Neither stops the build: the theme renders with what could be used. ⛔ Until
2630
+ // 2026-10-19 the findings were dropped here, so a misspelled `code:` key or an
2631
+ // invalid colour reached no one.
2632
+ for (const message of [...(errors || []), ...(warnings || [])]) {
2633
+ console.warn(`[theme] ${message}`)
2630
2634
  }
2631
2635
 
2632
2636
  // Check if pages directory exists