Skip to content

Commit 767d630

Browse files
committed
fix: read correct type definitions when using ESM
1 parent f159b8f commit 767d630

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)