Skip to content

Commit e30d6b8

Browse files
dummdidummSimon Holthausen
and
Simon Holthausen
authored
[fix] add types properly in exports in package.json (#2896)
Fixes #2863 Also removes somewhat weird types export "./types" which is redundant: you get these through the default import, too. Co-authored-by: Simon Holthausen <[email protected]>
1 parent f12bbcc commit e30d6b8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/beige-eyes-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
Fix types reference in exports in package.json

packages/kit/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
},
6969
"exports": {
7070
"./package.json": "./package.json",
71+
".": {
72+
"types": "./types/index.d.ts"
73+
},
7174
"./ssr": {
7275
"import": "./dist/ssr.js"
7376
},
@@ -79,8 +82,7 @@
7982
},
8083
"./install-fetch": {
8184
"import": "./dist/install-fetch.js"
82-
},
83-
"./types": "./types/index.d.ts"
85+
}
8486
},
8587
"types": "types/index.d.ts",
8688
"engines": {

0 commit comments

Comments
 (0)