Skip to content

Commit

Permalink
feat(package)!: set type="module" and use exports map
Browse files Browse the repository at this point in the history
metonym committed Nov 20, 2024
1 parent 8d423bf commit 256333a
Showing 2 changed files with 18 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,10 +4,25 @@
"license": "MIT",
"description": "Accessible, fuzzy search typeahead component",
"author": "Eric Liu (https://github.com/metonym)",
"type": "module",
"svelte": "./src/index.js",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./src/index.d.ts",
"main": "./src/index.js",
"types": "./index.d.ts",
"exports": {
"./*.svelte": {
"types": "./src/*.svelte.d.ts",
"import": "./src/*.svelte"
},
"./*.js": {
"types": "./src/*.d.ts",
"import": "./src/*.js"
},
".": {
"types": "./src/index.d.ts",
"import": "./src/index.js",
"svelte": "./src/index.js"
}
},
"scripts": {
"dev": "rollup -cw",
"test": "svelte-check --workspace tests"

0 comments on commit 256333a

Please sign in to comment.