From aeb1411ef7b7c8cdd89a821346ef908e64099992 Mon Sep 17 00:00:00 2001 From: Petr Hurtak Date: Wed, 7 Feb 2024 13:01:41 +0100 Subject: [PATCH] Update docs and build script to use node20 --- README.md | 2 +- scripts/build.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 45ca320..1e356ad 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ $ pnpm run build $ aws lambda publish-layer-version \ --layer-name "logtail-lambda-extension" \ --zip-file "fileb://./dist/extension.zip" \ - --compatible-runtimes nodejs16.x nodejs18.x \ + --compatible-runtimes nodejs20.x \ --compatible-architectures x86_64 arm64 ``` diff --git a/scripts/build.ts b/scripts/build.ts index 91d830d..2fcdfcc 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -44,7 +44,7 @@ const run = () => bundle: true, minify: false, platform: 'node', - target: 'node16', + target: 'node20', outfile: outputIndex, }), (error) => new Error(`Error during build: ${error instanceof Error ? error.message : error}`),