Skip to content

Commit

Permalink
Switch lambda-function.zip to use CommonJS instead of ESM to match Cl…
Browse files Browse the repository at this point in the history
…oudFormation inlined template [#448] (#449)
  • Loading branch information
bdon authored Sep 12, 2024
1 parent ab5534d commit 61c3845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openlayers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/protomaps/PMTiles.git"
"url": "https://github.com/protomaps/PMTiles.git"
},
"bugs": {
"url": "https://github.com/protomaps/PMTiles/issues"
Expand Down
2 changes: 1 addition & 1 deletion serverless/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"private": true,
"scripts": {
"tsc": "tsc --noEmit --watch",
"build-zip": "esbuild src/index.ts --target=es2020 --outfile=dist/index.mjs --format=esm --bundle --platform=node --target=node20 --external:@aws-sdk/client-s3 --external:@aws-sdk/node-http-handler --banner:js=//$(git describe --always) && cd dist && zip lambda_function.zip index.mjs",
"build-zip": "esbuild src/index.ts --target=es2020 --outfile=dist/index.mjs --format=cjs --bundle --platform=node --target=node20 --external:@aws-sdk/client-s3 --external:@aws-sdk/node-http-handler --banner:js=//$(git describe --always) && cd dist && zip lambda_function.zip index.js",
"build-cloudformation-stack": "esbuild src/index.ts --target=es2020 --minify --outfile=dist/index.js --format=cjs --bundle --platform=node --target=node20 --external:@aws-sdk/client-s3 --banner:js=//sha:$(git describe --always) && tsx inline_lambda.ts",
"test": "tsx ../shared/index.test.ts",
"biome": "biome check --config-path=../../js/ src --apply",
Expand Down

0 comments on commit 61c3845

Please sign in to comment.