From 13fbdf07309141347734ab7a9d7b78c77936b700 Mon Sep 17 00:00:00 2001 From: Daniel Weijmers Date: Fri, 3 Feb 2023 08:22:34 +0100 Subject: [PATCH 1/2] added nodejs18.x as latest --- src/shared/runtimes.json | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/shared/runtimes.json b/src/shared/runtimes.json index 08cca53..0d3e3b8 100644 --- a/src/shared/runtimes.json +++ b/src/shared/runtimes.json @@ -39,7 +39,6 @@ "languageName": "JavaScript", "extension": ".js", "handlerFormat": "filename.handler", - "latest": true, "sharable": true }, { @@ -47,7 +46,6 @@ "languageName": "TypeScript", "extension": ".ts", "handlerFormat": "filename.handler", - "latest": true, "sharable": true, "metadataPromptTitle": "Please set esbuild configuration. Leave blank for defaults. Note that TypeScript support in SAM is in preview and can change without warning.", "metadata": { @@ -59,6 +57,31 @@ } } }, + { + "name": "nodejs18.x", + "languageName": "JavaScript", + "extension": ".js", + "handlerFormat": "filename.handler", + "latest": true, + "sharable": true + }, + { + "name": "nodejs18.x", + "languageName": "TypeScript", + "extension": ".ts", + "handlerFormat": "filename.handler", + "latest": true, + "sharable": true, + "metadataPromptTitle": "Please set esbuild configuration. Leave blank for defaults. Note that TypeScript support in SAM is in preview and can change without warning.", + "metadata": { + "BuildMethod": "esbuild", + "Properties": { + "Minify": { "Default": "true", "Prompt": true }, + "Target": { "Default": "es2022", "Prompt": true }, + "SourceMap": { "Default": "true", "Prompt": true } + } + } + }, { "name": "python3.8", "extension": ".py", From 42607ec8c377c065785049b4bc913279458d6775 Mon Sep 17 00:00:00 2001 From: Daniel Weijmers Date: Tue, 7 Feb 2023 15:57:46 +0100 Subject: [PATCH 2/2] added just nodejs --- src/shared/runtimes.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/shared/runtimes.json b/src/shared/runtimes.json index 0d3e3b8..361a3b5 100644 --- a/src/shared/runtimes.json +++ b/src/shared/runtimes.json @@ -1,4 +1,27 @@ [ + { + "name": "nodejs", + "languageName": "JavaScript", + "extension": ".js", + "handlerFormat": "filename.handler", + "sharable": true + }, + { + "name": "nodejs", + "languageName": "TypeScript", + "extension": ".ts", + "handlerFormat": "filename.handler", + "sharable": true, + "metadataPromptTitle": "Please set esbuild configuration. Leave blank for defaults. Note that TypeScript support in SAM is in preview and can change without warning.", + "metadata": { + "BuildMethod": "esbuild", + "Properties": { + "Minify": { "Default": "true", "Prompt": true }, + "Target": { "Default": "es2022", "Prompt": true }, + "SourceMap": { "Default": "true", "Prompt": true } + } + } + }, { "name": "nodejs10.x", "extension": ".js",