Skip to content

Commit f8c35c3

Browse files
committed
build: fix type exports
1 parent f0856f8 commit f8c35c3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@
77
"type": "module",
88
"exports": {
99
".": {
10-
"types": "./dist/index.d.ts",
11-
"require": "./dist/index.cjs",
12-
"import": "./dist/index.mjs"
10+
"import": {
11+
"types": "./dist/index.d.mts",
12+
"default": "./dist/index.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/index.d.cts",
16+
"default": "./dist/index.cjs"
17+
}
1318
}
1419
},
1520
"main": "./dist/index.cjs",
1621
"module": "./dist/index.mjs",
17-
"types": "./dist/index.d.ts",
22+
"types": "./dist/index.d.cts",
1823
"files": [
1924
"dist"
2025
],

0 commit comments

Comments
 (0)