From 8baf1bf8a8c7ff93e0ddf7c52a800fa89f2eef9a Mon Sep 17 00:00:00 2001 From: Tom Richards Date: Tue, 3 Dec 2024 17:48:46 +0000 Subject: [PATCH] upgrade node from 16 to 20 and therefore also stop excluding `aws-sdk` from the bundle/zip since v2 sdk is no longer provided at runtime (v3 is, upgrading to which is beyond the scope of this change) --- .nvmrc | 2 +- image-counter-lambda/package.json | 2 +- s3watcher/lambda/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvmrc b/.nvmrc index 9e15be3879..e8aa644174 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.20.0 +v20.18.1 diff --git a/image-counter-lambda/package.json b/image-counter-lambda/package.json index 6c5ea4e74b..db1813c6ce 100644 --- a/image-counter-lambda/package.json +++ b/image-counter-lambda/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "jest", - "compile": "ncc build src/handler.ts -o dist -m -e aws-sdk -s && (cd dist; zip image-counter-lambda.zip *)" + "compile": "ncc build src/handler.ts -o dist -m -s && (cd dist; zip image-counter-lambda.zip *)" }, "keywords": [], "author": "", diff --git a/s3watcher/lambda/package.json b/s3watcher/lambda/package.json index e5ca7e4b2b..52669e91ec 100644 --- a/s3watcher/lambda/package.json +++ b/s3watcher/lambda/package.json @@ -29,7 +29,7 @@ "test": "jest --coverage", "test:watch": "jest --watch", "lint": "eslint index.ts lib", - "build": "rm -f target/* && ncc build index.ts -o target -e aws-sdk && (cd target; zip s3watcher.zip index.js)", + "build": "rm -f target/* && ncc build index.ts -o target && (cd target; zip s3watcher.zip index.js)", "tsc": "tsc" }, "author": "",