Skip to content

Commit 0b56cef

Browse files
committed
fix: add dts for esm
1 parent ee1007b commit 0b56cef

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

package.json

+21-6
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,45 @@
2525
],
2626
"main": "./dist/index.js",
2727
"module": "./dist/index.mjs",
28-
"types": "index.d.ts",
28+
"types": "./dist/index.d.ts",
2929
"exports": {
3030
".": {
31-
"types": "./dist/index.d.ts",
31+
"types": {
32+
"require": "./dist/index.d.ts",
33+
"import": "./dist/index.d.mts"
34+
},
3235
"require": "./dist/index.js",
3336
"import": "./dist/index.mjs"
3437
},
3538
"./vite": {
36-
"types": "./dist/vite.d.ts",
39+
"types": {
40+
"require": "./dist/vite.d.ts",
41+
"import": "./dist/vite.d.mts"
42+
},
3743
"require": "./dist/vite.js",
3844
"import": "./dist/vite.mjs"
3945
},
4046
"./webpack": {
41-
"types": "./dist/webpack.d.ts",
47+
"types": {
48+
"require": "./dist/webpack.d.ts",
49+
"import": "./dist/webpack.d.mts"
50+
},
4251
"require": "./dist/webpack.js",
4352
"import": "./dist/webpack.mjs"
4453
},
4554
"./rollup": {
46-
"types": "./dist/rollup.d.ts",
55+
"types": {
56+
"require": "./dist/rollup.d.ts",
57+
"import": "./dist/rollup.d.mts"
58+
},
4759
"require": "./dist/rollup.js",
4860
"import": "./dist/rollup.mjs"
4961
},
5062
"./esbuild": {
51-
"types": "./dist/esbuild.d.ts",
63+
"types": {
64+
"require": "./dist/esbuild.d.ts",
65+
"import": "./dist/esbuild.d.mts"
66+
},
5267
"require": "./dist/esbuild.js",
5368
"import": "./dist/esbuild.mjs"
5469
},

0 commit comments

Comments
 (0)