Skip to content

Commit

Permalink
Fix type resolution for subpath exports when using `moduleResolution:…
Browse files Browse the repository at this point in the history
… node` (#2486)
  • Loading branch information
connor-baer authored and Pessimistress committed Feb 7, 2025
1 parent 83fee5e commit 565412d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@
"import": "./dist/mapbox-legacy/index.js"
}
},
"typesVersions": {
"*": {
"mapbox": [
"./dist/mapbox.d.ts"
],
"maplibre": [
"./dist/maplibre.d.ts"
],
"mapbox-legacy": [
"./dist/mapbox-legacy/index.d.ts"
]
}
},
"files": [
"src",
"dist",
Expand Down

0 comments on commit 565412d

Please sign in to comment.