@thespielplatz/tsp-tools-theme 0.2.0 → 0.2.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/README.md +19 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -34,6 +34,25 @@ Peer expectations (provide them in the consuming app):
|
|
|
34
34
|
> (A deep relative path such as `extends: ['../..']` can fail to pick up the source dirs;
|
|
35
35
|
> the package name always works.)
|
|
36
36
|
|
|
37
|
+
### Why `@nuxt/icon` is capped at `~2.3.1`
|
|
38
|
+
|
|
39
|
+
The layer declares `@nuxt/icon: ~2.3.1` as a direct dependency. This is a **temporary cap**
|
|
40
|
+
around an upstream regression, not a preference.
|
|
41
|
+
|
|
42
|
+
`@nuxt/icon` 2.4.1 changed its plugin to take `$fetch` from `useRequestFetch()` and then read
|
|
43
|
+
`.native` off it. During SSR that returns Nitro's request-scoped `event.$fetch`, which has no
|
|
44
|
+
`.native` property — so Iconify's fetch is set to `undefined` and **every server-side icon load
|
|
45
|
+
fails**, logging `[Icon] failed to load icon …` per request. `@nuxt/ui` only requires
|
|
46
|
+
`^2.3.1`, so any re-resolve of the tree silently moves consumers onto the broken version.
|
|
47
|
+
|
|
48
|
+
The cap is in `dependencies` rather than `overrides` on purpose: npm honours `overrides` only
|
|
49
|
+
in the root project, so an `overrides` entry here would not reach consuming apps. `2.3.1`
|
|
50
|
+
satisfies `@nuxt/ui`'s own range, so there is one hoisted copy and no duplication.
|
|
51
|
+
|
|
52
|
+
Remove the cap once a fixed `@nuxt/icon` ships. To check, drop the pin and look for
|
|
53
|
+
`failed to load icon` in the server log of a production build — the build itself stays green
|
|
54
|
+
either way, which is exactly why this is easy to miss.
|
|
55
|
+
|
|
37
56
|
---
|
|
38
57
|
|
|
39
58
|
## Global usage (whole app themed)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thespielplatz/tsp-tools-theme",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "tsp.tools design-system theme as a Nuxt layer (Nuxt UI v4 + Tailwind v4): amber-on-anthracite tokens (light + dark), Nunito/Space Grotesk fonts, per-area colour mode, and the shared app shell. Use globally via `extends`, or scoped to a sub-area.",
|
|
5
5
|
"author": "inf0matics",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,9 +48,11 @@
|
|
|
48
48
|
"build:playground": "nuxi build playground",
|
|
49
49
|
"build:scoped": "nuxi build scoped",
|
|
50
50
|
"typecheck": "nuxi typecheck playground && nuxi typecheck scoped",
|
|
51
|
-
"
|
|
51
|
+
"test:icons": "npm run build:playground && node scripts/check-icons.mjs",
|
|
52
|
+
"release": "npm run lint && npm run typecheck && npm run test:icons && npm publish"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
55
|
+
"@nuxt/icon": "~2.3.1",
|
|
54
56
|
"@nuxt/ui": "^4.10.0"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|