Skip to content

Commit

Permalink
Add types to package.json exports mapping (#444)
Browse files Browse the repository at this point in the history
* Add types to package.json exports mapping

* Move types to be first in package.json exports

---------

Co-authored-by: Ryan Christian <[email protected]>
  • Loading branch information
jhirvioja and rschristian authored May 3, 2023
1 parent 9028846 commit f558b75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"unpkg": "dist/preact-router.umd.js",
"exports": {
".": {
"types": "./index.d.ts",
"module": "./dist/preact-router.mjs",
"import": "./dist/preact-router.mjs",
"require": "./dist/preact-router.js"
},
"./package.json": "./package.json",
"./match": {
"types": "./match/index.d.ts",
"module": "./match/index.mjs",
"import": "./match/index.mjs",
"require": "./match/index.js"
Expand Down

0 comments on commit f558b75

Please sign in to comment.