replace esbuild runner with tsx (#333)

* also bump esbuild to latest version in all package.jsons
This commit is contained in:
Brandon Liu
2024-01-29 17:51:42 +08:00
committed by GitHub
parent a6cbc1961e
commit 22d7a58f36
8 changed files with 3472 additions and 1525 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -10,12 +10,12 @@
"@types/mapbox__vector-tile": "^1.3.0",
"@types/node": "^18.11.10",
"@types/pbf": "^3.0.2",
"esbuild": "^0.15.7",
"esbuild-runner": "^2.2.1",
"esbuild": "^0.20.0",
"tsx": "^4.7.0",
"typescript": "^4.8.3"
},
"scripts": {
"test": "node -r esbuild-runner/register vtfilter.test.ts",
"test": "tsx vtfilter.test.ts",
"tsc": "tsc --noEmit --watch",
"build": "esbuild index.ts --target=es2020 --outfile=dist/index.mjs --format=esm --bundle --platform=node --target=node18 --external:@aws-sdk/client-s3 --external:@aws-sdk/node-http-handler --banner:js=//$(git describe --always) && cd dist && zip lambda_function.zip index.mjs"
}