Skip to content

Commit

Permalink
fix: read correct type definitions when using ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-yryr committed Mar 30, 2024
1 parent f159b8f commit 767d630
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"scripts": {
Expand Down

0 comments on commit 767d630

Please sign in to comment.