From 61c38459ba31a0393f1b880de485f551f750812f Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 12 Sep 2024 10:17:09 +0800 Subject: [PATCH] Switch lambda-function.zip to use CommonJS instead of ESM to match CloudFormation inlined template [#448] (#449) --- openlayers/package.json | 2 +- serverless/aws/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlayers/package.json b/openlayers/package.json index 9256984..b6c3bc2 100644 --- a/openlayers/package.json +++ b/openlayers/package.json @@ -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" diff --git a/serverless/aws/package.json b/serverless/aws/package.json index 511bad4..2b436b9 100644 --- a/serverless/aws/package.json +++ b/serverless/aws/package.json @@ -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",