migrate Lambda implementation from python -> node [#80]

This commit is contained in:
Brandon Liu
2022-10-19 23:01:53 +08:00
parent 814761e152
commit 6ed943d156
11 changed files with 642 additions and 265 deletions

View File

@@ -0,0 +1,15 @@
{
"name": "pmtiles-aws",
"version": "0.0.0",
"devDependencies": {
"@types/aws-lambda": "^8.10.108",
"@types/node": "^18.11.2",
"esbuild": "^0.15.11",
"typescript": "^4.8.4"
},
"private": true,
"scripts": {
"tsc": "tsc --noEmit --watch",
"build": "esbuild src/index.ts --target=es2020 --outfile=dist/index.js --format=cjs --bundle --platform=node --target=node16 --external:/var/runtime/node_modules/aws-sdk/clients/s3.js --banner:js=//$(git describe --always) && cd dist && zip lambda_function.zip index.js"
}
}