From 84e6e1d018c59b37c4742c7a9100eb21267e114d Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Sat, 7 Jan 2023 09:01:24 +0100 Subject: [PATCH] chore: add `engines.node` to `package.json` (#227) And bump the target from ES2017 to ES2020. --- package.json | 3 +++ tsconfig.json | 4 ++-- webpack.config.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 156fd5948..84755b970 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tsconfig.json b/tsconfig.json index 7f47a36fc..144f644f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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 diff --git a/webpack.config.js b/webpack.config.js index 4d281a48b..80d46c2b4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,7 +22,7 @@ module.exports = { loader: `ts-loader`, options: { compilerOptions: { - module: `es2020`, + module: `ES2020`, noEmit: false, }, },