Skip to content

Commit adc30b8

Browse files
jycouetclaude
andcommitted
fix: add root types field for legacy module resolution
Allows twoslash on svelte.dev to resolve JSDoc hovers without needing `moduleResolution: "bundler"` in its compiler options. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eee119b commit adc30b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/sv-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"files": [
1919
"dist"
2020
],
21+
"types": "./dist/index.d.mts",
2122
"exports": {
2223
".": {
2324
"types": "./dist/index.d.mts",

packages/sv/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dist"
2020
],
2121
"bin": "./dist/bin.mjs",
22+
"types": "./dist/src/index.d.mts",
2223
"exports": {
2324
".": {
2425
"types": "./dist/src/index.d.mts",

0 commit comments

Comments
 (0)