Skip to content

Commit

Permalink
fix(package): add exports map
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Jan 1, 2024
1 parent 057dfc7 commit 8b2f824
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js"
},
"./src/*.svelte": {
"types": "./types/*.svelte.d.ts",
"import": "./src/*.svelte"
},
"./src/*": {
"types": "./types/*.d.ts",
"import": "./src/*.js"
}
},
"scripts": {
"dev": "rollup -cw",
"build": "rollup -c",
Expand Down

0 comments on commit 8b2f824

Please sign in to comment.