Skip to content

Commit

Permalink
Merge pull request #87 from sun-yryr/fix/#86-type-error
Browse files Browse the repository at this point in the history
fix: read correct type definitions when using ESM
  • Loading branch information
yamatatsu authored Mar 31, 2024
2 parents 1b83342 + 767d630 commit 309095b
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 309095b

Please sign in to comment.