Skip to content

Commit 127d72a

Browse files
committed
fix: add type path fallback
1 parent a86e3f8 commit 127d72a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"main": "./dist/index.js",
1212
"module": "./dist/index.mjs",
13-
"types": "./dist/types.d.ts",
13+
"types": "./types.d.ts",
1414
"exports": {
1515
".": {
1616
"types": "./dist/index.d.ts",
@@ -35,6 +35,14 @@
3535
"./types": "./types.d.ts",
3636
"./*": "./*"
3737
},
38+
"typesVersions": {
39+
"*": {
40+
"*": [
41+
"./dist/*",
42+
"./*"
43+
]
44+
}
45+
},
3846
"publishConfig": {
3947
"access": "public"
4048
},

0 commit comments

Comments
 (0)