Skip to content

Commit 166138c

Browse files
authored
Fix type resolution for subpath exports when using moduleResolution: node (#2486)
1 parent f60ff73 commit 166138c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

modules/main/package.json

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@
3232
"import": "./dist/mapbox-legacy/index.js"
3333
}
3434
},
35+
"typesVersions": {
36+
"*": {
37+
"mapbox": [
38+
"./dist/mapbox.d.ts"
39+
],
40+
"maplibre": [
41+
"./dist/maplibre.d.ts"
42+
],
43+
"mapbox-legacy": [
44+
"./dist/mapbox-legacy/index.d.ts"
45+
]
46+
}
47+
},
3548
"files": [
3649
"src",
3750
"dist",

0 commit comments

Comments
 (0)