Skip to content

Commit 5034fc1

Browse files
committed
Define type paths in package.json
1 parent 2000141 commit 5034fc1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

package.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@
1313
"type": "module",
1414
"exports": {
1515
".": {
16-
"node": "./index.js",
17-
"default": "./core.js"
16+
"node": {
17+
"types": "./index.d.ts",
18+
"import": "./index.js"
19+
},
20+
"default": {
21+
"types": "./core.d.ts",
22+
"import": "./core.js"
23+
}
1824
},
19-
"./core": "./core.js"
25+
"./core": {
26+
"types": "./core.d.ts",
27+
"import": "./core.js"
28+
}
2029
},
2130
"sideEffects": false,
2231
"engines": {

0 commit comments

Comments
 (0)