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, diff --git a/scripts/generate-lts.ts b/scripts/generate-lts.ts index d492c31..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"; @@ -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);