diff --git a/modules/main/package.json b/modules/main/package.json index bb5c901f0..8d3b7faa8 100644 --- a/modules/main/package.json +++ b/modules/main/package.json @@ -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",