Skip to content

Commit 295f0a3

Browse files
committed
Convert location-conflation to TypeScript
1 parent c06fa6c commit 295f0a3

11 files changed

+506
-383
lines changed

bun.lock

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"type": "module",
2323
"exports": {
24-
"bun": "./src/location-conflation.mjs",
24+
"bun": "./src/location-conflation.ts",
2525
"import": "./dist/location-conflation.mjs",
2626
"require": "./dist/location-conflation.cjs",
2727
"browser": "./dist/location-conflation.iife.js"
@@ -47,6 +47,7 @@
4747
"devDependencies": {
4848
"@eslint/js": "^9.38.0",
4949
"@types/bun": "^1.3.1",
50+
"@types/geojson": "^7946.0.16",
5051
"eslint": "^9.38.0",
5152
"globals": "^16.4.0",
5253
"npm-run-all2": "^8.0.4",

scripts/build_js.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ await Promise.all([
1010
}),
1111

1212
Bun.build({
13-
entrypoints: ['./src/location-conflation.mjs'],
13+
entrypoints: ['./src/location-conflation.ts'],
1414
outdir: './dist',
1515
target: 'node',
1616
format: 'cjs',
@@ -20,7 +20,7 @@ await Promise.all([
2020
}),
2121

2222
Bun.build({
23-
entrypoints: ['./src/location-conflation.mjs'],
23+
entrypoints: ['./src/location-conflation.ts'],
2424
outdir: './dist',
2525
target: 'node',
2626
format: 'esm',

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
import { LocationConflation } from './location-conflation.mjs';
1+
import { LocationConflation } from './location-conflation.ts';
2+
3+
export { LocationConflation };
4+
export default LocationConflation;
25
globalThis.LocationConflation = LocationConflation;

0 commit comments

Comments
 (0)