Skip to content

Commit 2d7af5b

Browse files
feat: bump Node.js minimum to 20.12.0 and pinned to 24.3.0 (#2230)
## PR Checklist - [x] Addresses an existing open issue: fixes #2184 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Updates the versions to: * Minimum: 20.19.0, the oldest LTS 20.x version with require(esm) * Pinned: 24.3.0, the recent release with no-warning type stripping Now that #2229 is merged, this should now be doable without risk to downstream packages. 🎁
1 parent 20dbf5b commit 2d7af5b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/actions/prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
99
with:
1010
cache: pnpm
11-
node-version: 22.14.0
11+
node-version: 24.3.0
1212
- run: pnpm install --frozen-lockfile
1313
shell: bash
1414
using: composite

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.14.0
1+
24.3.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
},
122122
"packageManager": "pnpm@10.8.0",
123123
"engines": {
124-
"node": ">=18.3.0"
124+
"node": ">=20.19.0"
125125
},
126126
"publishConfig": {
127127
"provenance": true

src/blocks/blockNvmrc.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("blockNvmrc", () => {
2222
const creation = testBlock(blockNvmrc, {
2323
options: {
2424
...optionsBase,
25-
node: { minimum: ">=18.3.0", pinned: "20.18.0" },
25+
node: { minimum: ">=20.19.0", pinned: "24.3.0" },
2626
},
2727
});
2828

@@ -33,7 +33,7 @@ describe("blockNvmrc", () => {
3333
}),
3434
],
3535
files: {
36-
".nvmrc": `20.18.0\n`,
36+
".nvmrc": `24.3.0\n`,
3737
},
3838
});
3939
});

src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const defaults = {
22
node: {
3-
minimum: "18.3.0",
4-
pinned: "20.18.0",
3+
minimum: "20.19.0",
4+
pinned: "24.3.0",
55
},
66
};

0 commit comments

Comments
 (0)