Skip to content

Commit

Permalink
fix(package): add exports map to package.json (#77)
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
harshmandan authored Jan 1, 2024
1 parent 90912b8 commit e8f815c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@
"license": "MIT",
"description": "Detect if an element is in the viewport using the Intersection Observer API",
"author": "Eric Liu (https://github.com/metonym)",
"type": "module",
"svelte": "./src/index.js",
"main": "./src/index.js",
"types": "./src/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js"
},
"./src/*.svelte": {
"types": "./src/*.svelte.d.ts",
"import": "./src/*.svelte"
},
"./src/*": {
"types": "./src/*.d.ts",
"import": "./src/*.js"
}
},
"scripts": {
"dev": "rollup -cw",
"build": "rollup -c",
Expand Down

0 comments on commit e8f815c

Please sign in to comment.