Skip to content

Commit

Permalink
chore: add engines.node to package.json (#227)
Browse files Browse the repository at this point in the history
And bump the target from ES2017 to ES2020.
  • Loading branch information
merceyz committed Jan 7, 2023
1 parent 82a6715 commit 84e6e1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"type": "git",
"url": "https://github.com/nodejs/corepack.git"
},
"engines": {
"node": ">=14.14.0"
},
"license": "MIT",
"packageManager": "yarn@4.0.0-rc.15+sha224.7fa5c1d1875b041cea8fcbf9a364667e398825364bf5c5c8cd5f6601",
"devDependencies": {
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": ["dom", "es2017", "esnext.asynciterable"],
"lib": ["ES2020"],
"module": "commonjs",
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es2017"
"target": "ES2020"
},
"ts-node": {
"transpileOnly": true
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
loader: `ts-loader`,
options: {
compilerOptions: {
module: `es2020`,
module: `ES2020`,
noEmit: false,
},
},
Expand Down

0 comments on commit 84e6e1d

Please sign in to comment.