svelte-docinfo 0.8.0 → 0.8.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 +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/package.json +20 -16
- package/virtual-svelte-docinfo.d.ts +9 -11
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ in the [npm package](https://www.npmjs.com/package/svelte-docinfo).
|
|
|
18
18
|
npm i -D svelte-docinfo
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Peer dependencies: `svelte` 5+, `svelte2tsx`, `typescript` 5.9
|
|
21
|
+
Peer dependencies: `svelte` 5+, `svelte2tsx`, `typescript` 5.9+ or 6, and `zod` 4+
|
|
22
22
|
(npm 7+ installs them automatically).
|
|
23
23
|
|
|
24
24
|
- [Quick start](#quick-start)
|
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
26
26
|
* // vite.config.ts
|
|
27
|
-
* import svelteDocinfo from '
|
|
27
|
+
* import svelteDocinfo from 'svelte-docinfo/vite.js';
|
|
28
28
|
*
|
|
29
29
|
* export default defineConfig({
|
|
30
30
|
* plugins: [
|
|
@@ -325,8 +325,8 @@ const svelteDocinfo = (options = {}) => {
|
|
|
325
325
|
// toolchain (vite → rollup → esbuild) into the client bundle.
|
|
326
326
|
// It tree-shakes away, but floods the log with "externalized for
|
|
327
327
|
// browser" warnings. `ts.resolveModuleName` is side-effect-free
|
|
328
|
-
// and honors tsconfig `paths`
|
|
329
|
-
//
|
|
328
|
+
// and honors tsconfig `paths` and package.json `imports` (e.g.
|
|
329
|
+
// `#lib/*`), which covers internal dependency edges. Node builtins
|
|
330
330
|
// are already filtered before the resolver (see `session.ts`).
|
|
331
331
|
sessionResolver = undefined;
|
|
332
332
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-docinfo",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "static analysis for TypeScript and Svelte",
|
|
5
5
|
"glyph": "📜",
|
|
6
6
|
"logo": "logo.svg",
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"deploy": "gro deploy"
|
|
34
34
|
},
|
|
35
35
|
"type": "module",
|
|
36
|
+
"imports": {
|
|
37
|
+
"#lib/*": "./src/lib/*",
|
|
38
|
+
"#routes/*": "./src/routes/*"
|
|
39
|
+
},
|
|
36
40
|
"bin": {
|
|
37
41
|
"svelte-docinfo": "dist/main.js"
|
|
38
42
|
},
|
|
@@ -46,23 +50,23 @@
|
|
|
46
50
|
"peerDependencies": {
|
|
47
51
|
"svelte": "^5.0.0",
|
|
48
52
|
"svelte2tsx": "^0.7.30",
|
|
49
|
-
"typescript": "^5.9.3",
|
|
53
|
+
"typescript": "^5.9.3 || ^6",
|
|
50
54
|
"zod": "^4"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
57
|
"@fuzdev/blake3-wasm": "^0.2.0",
|
|
54
58
|
"@fuzdev/fuz_code": "^0.50.0",
|
|
55
|
-
"@fuzdev/fuz_css": "^0.
|
|
56
|
-
"@fuzdev/fuz_ui": "^0.210.
|
|
57
|
-
"@fuzdev/fuz_util": "^0.
|
|
58
|
-
"@fuzdev/gro": "^0.
|
|
59
|
-
"@fuzdev/mdz": "^0.
|
|
59
|
+
"@fuzdev/fuz_css": "^0.66.1",
|
|
60
|
+
"@fuzdev/fuz_ui": "^0.210.4",
|
|
61
|
+
"@fuzdev/fuz_util": "^0.72.0",
|
|
62
|
+
"@fuzdev/gro": "^0.214.0",
|
|
63
|
+
"@fuzdev/mdz": "^0.4.0",
|
|
60
64
|
"@ryanatkn/eslint-config": "^0.12.2",
|
|
61
65
|
"@sveltejs/acorn-typescript": "^1.0.9",
|
|
62
|
-
"@sveltejs/adapter-static": "^
|
|
63
|
-
"@sveltejs/kit": "^
|
|
64
|
-
"@sveltejs/package": "^
|
|
65
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
66
|
+
"@sveltejs/adapter-static": "^4.0.0",
|
|
67
|
+
"@sveltejs/kit": "^3.0.1",
|
|
68
|
+
"@sveltejs/package": "^3.0.0",
|
|
69
|
+
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
66
70
|
"@types/estree": "^1.0.8",
|
|
67
71
|
"@types/node": "^24.10.4",
|
|
68
72
|
"@types/picomatch": "^4.0.2",
|
|
@@ -71,13 +75,13 @@
|
|
|
71
75
|
"eslint-plugin-svelte": "^3.19.0",
|
|
72
76
|
"esm-env": "^1.2.2",
|
|
73
77
|
"magic-string": "^0.30.21",
|
|
74
|
-
"svelte": "^5.
|
|
75
|
-
"svelte-check": "^4.7.
|
|
78
|
+
"svelte": "^5.57.2",
|
|
79
|
+
"svelte-check": "^4.7.6",
|
|
76
80
|
"svelte2tsx": "^0.7.55",
|
|
77
81
|
"tslib": "^2.8.1",
|
|
78
|
-
"typescript": "^
|
|
79
|
-
"typescript-eslint": "^8.
|
|
80
|
-
"vite": "^
|
|
82
|
+
"typescript": "^6.0.3",
|
|
83
|
+
"typescript-eslint": "^8.71.1",
|
|
84
|
+
"vite": "^8.3.4",
|
|
81
85
|
"vitest": "^5.0.0",
|
|
82
86
|
"zimmerframe": "^1.1.4",
|
|
83
87
|
"zod": "^4.3.6"
|
|
@@ -28,17 +28,15 @@
|
|
|
28
28
|
*
|
|
29
29
|
* ## Why this file lives at the package root, not `src/lib/`
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* the
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* imports
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* Living at the root keeps the file out of `svelte-package`'s reach;
|
|
31
|
+
* The import below must stay the bare `'svelte-docinfo'` specifier, resolved
|
|
32
|
+
* through the consumer's own install. `@sveltejs/package` rewrites aliased and
|
|
33
|
+
* `#`-prefixed (`#lib/*`) imports in every file under `src/lib/`, including
|
|
34
|
+
* hand-written `.d.ts`, to relative paths — and TypeScript doesn't resolve
|
|
35
|
+
* relative imports inside ambient `declare module` blocks in consumer
|
|
36
|
+
* projects, so types would silently collapse to `any`.
|
|
37
|
+
*
|
|
38
|
+
* Living at the root keeps the file out of `svelte-package`'s reach, so no
|
|
39
|
+
* alias or subpath import can rewrite it;
|
|
42
40
|
* `gro.config.ts` and `package.json` `files` re-register it for npm.
|
|
43
41
|
* Do not "fix" this by moving the file into `src/lib/`.
|
|
44
42
|
*/
|