From 84c7f20ea2318d78c853ff224b6079babab393bd Mon Sep 17 00:00:00 2001 From: Ellie Date: Sun, 3 Dec 2023 19:29:41 +0800 Subject: [PATCH 1/3] Update generate-lts script to preserve new line at EOF --- scripts/generate-lts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generate-lts.ts b/scripts/generate-lts.ts index d492c31..7e695d1 100644 --- a/scripts/generate-lts.ts +++ b/scripts/generate-lts.ts @@ -55,7 +55,8 @@ parsedAndOrdered.display = versioned.display; const serializedConfig = "// This file was autogenerated by a script\n" + `// Equivalent to a config of: ${base}\n` + - JSON.stringify(parsedAndOrdered, null, " "); + JSON.stringify(parsedAndOrdered, null, " ") + + "\n"; const filePath = path.join(Deno.cwd(), "bases/node-lts.json"); Deno.writeTextFile(filePath, serializedConfig); From 1ab47626124914d90b3289abc72eae676fd9ff99 Mon Sep 17 00:00:00 2001 From: Ellie Date: Sun, 3 Dec 2023 19:32:05 +0800 Subject: [PATCH 2/3] Add --allow-net to script instruction for access to nodejs.org --- scripts/generate-lts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-lts.ts b/scripts/generate-lts.ts index 7e695d1..48e8c1d 100644 --- a/scripts/generate-lts.ts +++ b/scripts/generate-lts.ts @@ -1,4 +1,4 @@ -// deno run --allow-read --allow-write scripts/generate-lts.ts +// deno run --allow-read --allow-write --allow-net scripts/generate-lts.ts // import { gt } from "https://deno.land/std@0.192.0/semver/gt.ts"; From 07ade5466abf55a6c9959e646bbe3edba859fb3a Mon Sep 17 00:00:00 2001 From: Ellie Date: Sun, 3 Dec 2023 19:33:32 +0800 Subject: [PATCH 3/3] Update LTS to Node 20 --- bases/node-lts.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bases/node-lts.json b/bases/node-lts.json index 74ba10f..ed081a4 100644 --- a/bases/node-lts.json +++ b/bases/node-lts.json @@ -1,11 +1,13 @@ // This file was autogenerated by a script -// Equivalent to a config of: node18 +// Equivalent to a config of: node20 { "$schema": "https://json.schemastore.org/tsconfig", "display": "Node LTS", - "_version": "18.1.0", + "_version": "20.1.0", "compilerOptions": { - "lib": ["es2023"], + "lib": [ + "es2023" + ], "module": "node16", "target": "es2022", "strict": true,