Skip to content

Commit

Permalink
[fix] add types properly in exports in package.json
Browse files Browse the repository at this point in the history
Fixes #2863
Also removes somewhat weird types export "./types" which is redundant: you get these through the default import, too.
  • Loading branch information
Simon Holthausen committed Nov 24, 2021
1 parent c75dcde commit 777ff34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-eyes-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Fix types reference in exports in package.json
6 changes: 4 additions & 2 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./types/index.d.ts"
},
"./ssr": {
"import": "./dist/ssr.js"
},
Expand All @@ -79,8 +82,7 @@
},
"./install-fetch": {
"import": "./dist/install-fetch.js"
},
"./types": "./types/index.d.ts"
}
},
"types": "types/index.d.ts",
"engines": {
Expand Down

0 comments on commit 777ff34

Please sign in to comment.