Skip to content

Commit

Permalink
Merge pull request #238 from einhund/update-lts
Browse files Browse the repository at this point in the history
Update LTS to Node 20
  • Loading branch information
orta authored Dec 11, 2023
2 parents 22f9047 + 07ade54 commit c573e32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions bases/node-lts.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 3 additions & 2 deletions scripts/generate-lts.ts
Original file line number Diff line number Diff line change
@@ -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/[email protected]/semver/gt.ts";
Expand Down Expand Up @@ -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);

0 comments on commit c573e32

Please sign in to comment.