Skip to content

Commit 2c7b9b4

Browse files
committed
fix: export seperate typings for CommonJS consumers (#48)
1 parent 7113c99 commit 2c7b9b4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
"types": "./dist/index.d.ts",
2727
"exports": {
2828
".": {
29-
"types": "./dist/index.d.ts",
30-
"import": "./dist/index.js",
31-
"require": "./dist/index.cjs",
32-
"default": "./dist/index.js"
29+
"import": {
30+
"types": "./dist/index.d.ts",
31+
"default": "./dist/index.js"
32+
},
33+
"require": {
34+
"types": "./dist/index.d.cts",
35+
"default": "./dist/index.cjs"
36+
}
3337
}
3438
},
3539
"files": [

0 commit comments

Comments
 (0)