Skip to content

Commit aaab38a

Browse files
authored
fix: resolve types with node10-style moduleResolution
Adds a fix to allow resolving types with `tsc`'s older `node10`-style module resolution.
1 parent 5eb8107 commit aaab38a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
"main": "./dist/cjs/lib/index.cjs",
66
"module": "./dist/esm/lib/index.mjs",
77
"types": "./dist/types/lib/index.d.ts",
8+
"typesVersions": {
9+
"*": {
10+
"*": [
11+
"dist/types/lib/index.d.ts"
12+
],
13+
"polyfill": [
14+
"dist/types/polyfill/index.d.ts"
15+
]
16+
}
17+
},
818
"exports": {
919
".": {
1020
"types": "./dist/types/lib/index.d.ts",

0 commit comments

Comments
 (0)