Skip to content

Commit

Permalink
Update package.json exports field to properly export types for each b…
Browse files Browse the repository at this point in the history
…uild type
  • Loading branch information
csandman committed Oct 25, 2024
1 parent 7f4b743 commit c4ff9d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit c4ff9d1

Please sign in to comment.