Skip to content

Commit 4090f7a

Browse files
authored
Fix missing typescript declaration files (#27)
* Fix missing typescript declatation files * Add back export to make sure types are used.
1 parent 2b6b1fd commit 4090f7a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"version": "5.0.3",
44
"description": "Slice GeoJSON data into vector tiles efficiently",
55
"type": "module",
6-
"exports": "./src/index.js",
6+
"exports": {
7+
".": {
8+
"types": "./dist/index.d.ts",
9+
"import": "./dist/geojson-vt.mjs",
10+
"default": "./dist/geojson-vt.js"
11+
}
12+
},
713
"sideEffects": false,
814
"keywords": [
915
"spatial",
@@ -13,7 +19,7 @@
1319
],
1420
"author": "Vladimir Agafonkin",
1521
"module": "dist/geojson-vt.mjs",
16-
"main": "dist/geojson-vt-dev.js",
22+
"main": "dist/geojson-vt.js",
1723
"typings": "dist/index.d.ts",
1824
"jsdelivr": "dist/geojson-vt.js",
1925
"unpkg": "dist/geojson-vt.js",

tsconfig.declaration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"declarationMap": true,
88
"rootDir": "./src",
99
"skipLibCheck": true,
10+
"noEmit": false,
1011
},
1112
"include": ["./src/**/*.ts"]
1213
}

0 commit comments

Comments
 (0)