Skip to content

Commit

Permalink
fix: properly resolve types when using TypeScript's latest module res…
Browse files Browse the repository at this point in the history
…olution strategy (#62)
  • Loading branch information
angeloashmore authored May 22, 2023
1 parent d1020ba commit 2041e53
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 @@ -16,8 +16,14 @@
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit 2041e53

Please sign in to comment.