Skip to content

Commit 10c6560

Browse files
AlexAegisdominikg
andauthored
Add types to the exports (#488)
* fix: add types to exports in package.json Add missing "types" definition to the exports object. In some cases the one defined at the root level of the package json file is ignored if exports is also defined. * chore: add changeset Co-authored-by: dominikg <[email protected]>
1 parent 12f6370 commit 10c6560

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/shaggy-panthers-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
add types to exports map in package.json

packages/vite-plugin-svelte/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"types": "dist/index.d.ts",
1717
"exports": {
1818
".": {
19+
"types": "./dist/index.d.ts",
1920
"import": "./dist/index.js",
2021
"require": "./dist/index.cjs"
2122
},

0 commit comments

Comments
 (0)