From 01c52d8febc49a09cbe1affcdbfe28f378830613 Mon Sep 17 00:00:00 2001 From: Joshua Auerbach Date: Tue, 6 Sep 2022 15:00:56 -0400 Subject: [PATCH] Add support for typescript in the nodejs runtime --- commands/serverless.go | 21 ++++++++++----------- do/serverless.go | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/commands/serverless.go b/commands/serverless.go index 1dd5825d7..89231187e 100644 --- a/commands/serverless.go +++ b/commands/serverless.go @@ -39,17 +39,16 @@ var ( // Note: this table has all languages for which we possess samples. Only those with currently // active runtimes will display. languageKeywords map[string][]string = map[string][]string{ - "nodejs": {"javascript", "js"}, - "deno": {"deno"}, - "go": {"go", "golang"}, - "java": {"java"}, - "php": {"php"}, - "python": {"python", "py"}, - "ruby": {"ruby"}, - "rust": {"rust"}, - "swift": {"swift"}, - "dotnet": {"csharp", "cs"}, - "typescript": {"typescript", "ts"}, + "nodejs": {"javascript", "js", "typescript", "ts"}, + "deno": {"deno"}, + "go": {"go", "golang"}, + "java": {"java"}, + "php": {"php"}, + "python": {"python", "py"}, + "ruby": {"ruby"}, + "rust": {"rust"}, + "swift": {"swift"}, + "dotnet": {"csharp", "cs"}, } ) diff --git a/do/serverless.go b/do/serverless.go index a88f3095f..6945e116c 100644 --- a/do/serverless.go +++ b/do/serverless.go @@ -227,7 +227,7 @@ const ( // Minimum required version of the sandbox plugin code. The first part is // the version of the incorporated Nimbella CLI and the second part is the // version of the bridge code in the sandbox plugin repository. - minServerlessVersion = "4.1.0-1.3.1" + minServerlessVersion = "4.2.3-1.3.1" // The version of nodejs to download alongsize the plugin download. nodeVersion = "v16.13.0"