@uniweb/build 1.20.2 → 1.20.3

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.20.2",
3
+ "version": "1.20.3",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -60,8 +60,8 @@
60
60
  "@uniweb/content-reader": "~1.5.9",
61
61
  "@uniweb/schemas": "~1.7.0",
62
62
  "@uniweb/theming": "~1.3.2",
63
- "@uniweb/semantic-parser": "~1.13.2",
64
63
  "@uniweb/content-writer": "~1.3.1",
64
+ "@uniweb/semantic-parser": "~1.13.2",
65
65
  "@uniweb/projections": "~1.2.13"
66
66
  },
67
67
  "optionalDependencies": {
@@ -74,8 +74,8 @@
74
74
  "@tailwindcss/vite": "^4.0.0",
75
75
  "@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
76
76
  "vite-plugin-svgr": "^4.0.0",
77
- "@uniweb/runtime": "~1.5.4",
78
- "@uniweb/core": "~1.6.9"
77
+ "@uniweb/core": "~1.6.9",
78
+ "@uniweb/runtime": "~1.5.4"
79
79
  },
80
80
  "peerDependenciesMeta": {
81
81
  "vite": {
@@ -245,14 +245,15 @@ export function blueprintWarnings(blueprint, { scope, declared, sending = false
245
245
  if (!isMap(blueprint[key])) continue
246
246
  for (const type of Object.keys(blueprint[key])) {
247
247
  const at = `${key}.${type}`
248
- if (!scoped && type.startsWith('@/')) {
249
- if (sending) out.push(
248
+ if (!scoped && type.startsWith('@/') && sending) {
249
+ out.push(
250
250
  `${BLUEPRINT_FILE}: \`${at}\` is the foundation's own type, and the foundation has no scope yet, ` +
251
251
  "so a push sends it as written — the backend never resolves an `@/x`. A foundation's scope is part " +
252
252
  "of its name — `name: '@org/<name>'` in its main.js, which `uniweb register` writes."
253
253
  )
254
- continue
255
254
  }
255
+ // With no scope the foundation's own types are read as `@/x` too (`siteDeclaredTypes`), so an
256
+ // `@/x` is checked as written: every project's foundation has no scope until its first register.
256
257
  if (declared?.types && !declared.types.has(qualifyRef(type, scope))) {
257
258
  out.push(
258
259
  `${BLUEPRINT_FILE}: \`${at}\` names a type none of this site's foundations declares, so a backend ` +