Skip to content

Commit 309095b

Browse files
authored
Merge pull request #87 from sun-yryr/fix/#86-type-error
fix: read correct type definitions when using ESM
2 parents 1b83342 + 767d630 commit 309095b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@
3030
],
3131
"exports": {
3232
".": {
33-
"types": "./dist/index.d.ts",
34-
"require": "./dist/index.cjs",
35-
"import": "./dist/index.mjs"
33+
"require": {
34+
"types": "./dist/index.d.cts",
35+
"default": "./dist/index.cjs"
36+
},
37+
"import": {
38+
"types": "./dist/index.d.mts",
39+
"default": "./dist/index.mjs"
40+
}
3641
}
3742
},
3843
"scripts": {

0 commit comments

Comments
 (0)