Skip to content

Commit

Permalink
chore: update supported Node.js versions
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove support for Node.js 16.x
  • Loading branch information
aduh95 committed Sep 11, 2023
1 parent cc33de0 commit 11c618b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
fail-fast: false
matrix:
node:
- 16
- 18
- 20
platform:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/nodejs/corepack.git"
},
"engines": {
"node": ">=16.20.0"
"node": ">=18.17.1"
},
"exports": {
"./package.json": "./package.json"
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"scripts": {
"build": "rm -rf dist shims && run build:bundle && ts-node ./mkshims.ts",
"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'",
"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'",
"corepack": "ts-node ./sources/_cli.ts",
"lint": "eslint .",
"prepack": "yarn build",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"moduleResolution": "node",
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ES2021"],
"lib": ["ES2023"],
"module": "commonjs",
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2021"
"target": "ES2023"
},
"ts-node": {
"transpileOnly": true
Expand Down

0 comments on commit 11c618b

Please sign in to comment.