Skip to content

Commit

Permalink
Fix declarations files generation (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebstryczek authored Jan 8, 2025
1 parent 9dd624a commit c1d3fb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/marker-layout",
"version": "2.0.0",
"version": "2.0.1",
"description": "Maker layout manager for MapTiler SDK, frontend framework agnostic",
"module": "dist/maptiler-marker-layout.mjs",
"types": "dist/maptiler-marker-layout.d.ts",
Expand Down
4 changes: 0 additions & 4 deletions src/markerlayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import type {
MapGeoJSONFeature,
} from "@maptiler/sdk";

import packagejson from "../package.json";

/**
* How the markers are anchored to a given point
*/
Expand Down Expand Up @@ -223,8 +221,6 @@ export class MarkerLayout {
private maxNbFeaturesPerMarker: number = Number.POSITIVE_INFINITY;

constructor(map: MapSDK, options: MarkerLayoutOptions = {}) {
map.telemetry.registerModule(packagejson.name, packagejson.version);

this.map = map;
this.layers = options.layers ?? undefined;
this.markerAnchor = options.markerAnchor ?? "center";
Expand Down
14 changes: 7 additions & 7 deletions vite.config-es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import dts from 'vite-plugin-dts';

const isProduction = process.env.NODE_ENV === "production";

const plugins = [
dts({insertTypesEntry: true}),
];


export default defineConfig({
mode: isProduction ? "production" : "development",
build: {
Expand All @@ -30,5 +25,10 @@ export default defineConfig({
},
},
},
plugins,
})
plugins: [
dts({
insertTypesEntry: true,
entryRoot: "src",
}),
],
});

0 comments on commit c1d3fb2

Please sign in to comment.