Skip to content

Commit

Permalink
fix(package): include types in exports map (#1865)
Browse files Browse the repository at this point in the history
Fixes #1863
  • Loading branch information
metonym authored Dec 17, 2023
1 parent 4251969 commit 053beee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@
"svelte": "./src/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js"
},
"./css/*": "./css/*",
"./src/*": "./src/*"
"./src/*.svelte": {
"types": "./types/*.svelte.d.ts",
"import": "./src/*.svelte"
},
"./src/*": {
"types": "./types/*.d.ts",
"import": "./src/*.js"
}
},
"main": "./lib/index.js",
"module": "./lib/index.mjs",
Expand Down

0 comments on commit 053beee

Please sign in to comment.