Skip to content

Commit 787e24d

Browse files
authored
chore: update supported Node.js versions (#309)
BREAKING CHANGE: remove support for Node.js 16.x
1 parent c085753 commit 787e24d

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
node:
49-
- 16
5049
- 18
5150
- 20
5251
platform:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/nodejs/corepack.git"
1111
},
1212
"engines": {
13-
"node": ">=16.20.0"
13+
"node": ">=18.17.1"
1414
},
1515
"exports": {
1616
"./package.json": "./package.json"
@@ -52,7 +52,7 @@
5252
},
5353
"scripts": {
5454
"build": "rm -rf dist shims && run build:bundle && ts-node ./mkshims.ts",
55-
"build:bundle": "esbuild ./sources/_lib.ts --bundle --platform=node --target=node16.20.0 --external:corepack --outfile='./dist/lib/corepack.cjs' --resolve-extensions='.ts,.mjs,.js'",
55+
"build:bundle": "esbuild ./sources/_lib.ts --bundle --platform=node --target=node18.17.0 --external:corepack --outfile='./dist/lib/corepack.cjs' --resolve-extensions='.ts,.mjs,.js'",
5656
"corepack": "ts-node ./sources/_cli.ts",
5757
"lint": "eslint .",
5858
"prepack": "yarn build",

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"moduleResolution": "node",
88
"noEmit": true,
99
"forceConsistentCasingInFileNames": true,
10-
"lib": ["ES2021"],
10+
"lib": ["ES2023"],
1111
"module": "commonjs",
1212
"resolveJsonModule": true,
1313
"skipLibCheck": true,
1414
"strict": true,
15-
"target": "ES2021"
15+
"target": "ES2022"
1616
},
1717
"ts-node": {
1818
"transpileOnly": true

yarn.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -5734,22 +5734,22 @@ __metadata:
57345734
linkType: hard
57355735

57365736
"typescript@npm:^5.0.4":
5737-
version: 5.0.4
5738-
resolution: "typescript@npm:5.0.4"
5737+
version: 5.2.2
5738+
resolution: "typescript@npm:5.2.2"
57395739
bin:
57405740
tsc: bin/tsc
57415741
tsserver: bin/tsserver
5742-
checksum: 2f5bd1cead194905957cb34e220b1d6ff1662399adef8ec1864f74620922d860ee35b6e50eafb3b636ea6fd437195e454e1146cb630a4236b5095ed7617395c2
5742+
checksum: 91ae3e6193d0ddb8656d4c418a033f0f75dec5e077ebbc2bd6d76439b93f35683936ee1bdc0e9cf94ec76863aa49f27159b5788219b50e1cd0cd6d110aa34b07
57435743
languageName: node
57445744
linkType: hard
57455745

57465746
"typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>":
5747-
version: 5.0.4
5748-
resolution: "typescript@patch:typescript@npm%3A5.0.4#optional!builtin<compat/typescript>::version=5.0.4&hash=b5f058"
5747+
version: 5.2.2
5748+
resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin<compat/typescript>::version=5.2.2&hash=f3b441"
57495749
bin:
57505750
tsc: bin/tsc
57515751
tsserver: bin/tsserver
5752-
checksum: c3f7b80577bddf6fab202a7925131ac733bfc414aec298c2404afcddc7a6f242cfa8395cf2d48192265052e11a7577c27f6e5fac8d8fe6a6602023c83d6b3292
5752+
checksum: 062c1cee1990e6b9419ce8a55162b8dc917eb87f807e4de0327dbc1c2fa4e5f61bc0dd4e034d38ff541d1ed0479b53bcee8e4de3a4075c51a1724eb6216cb6f5
57535753
languageName: node
57545754
linkType: hard
57555755

0 commit comments

Comments
 (0)