Skip to content

Commit

Permalink
Add conditional exports to package.json (#313)
Browse files Browse the repository at this point in the history
Fixes #310
  • Loading branch information
ItalyPaleAle authored Dec 9, 2023
1 parent 02be8f4 commit 5bd0342
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 @@ -6,6 +6,20 @@
"svelte": "Router.svelte",
"types": "Router.d.ts",
"type": "module",
"exports": {
"./active": {
"types": "./active.d.ts",
"import": "./active.js"
},
"./wrap": {
"types": "./wrap.d.ts",
"import": "./wrap.js"
},
".": {
"types": "./Router.d.ts",
"svelte": "./Router.svelte"
}
},
"scripts": {
"build-test-app": "(cd test/app && npx rollup -c)",
"start-test-app": "npx serve -n -l 5050 test/app/dist",
Expand Down

0 comments on commit 5bd0342

Please sign in to comment.