diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d31b6842e..d7b852391 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -18,12 +18,8 @@ jobs: strategy: fail-fast: false matrix: - node-version: [8.x, 10.x, 12.x, 13.x, 14.x] + node-version: [10.x, 12.x, 14.x] eslint-version: [5, 6, 7] - exclude: - # eslint@7 doesn't support node@8 - - node-version: 8.x - eslint-version: 7 runs-on: ubuntu-latest steps: diff --git a/babel.config.js b/babel.config.js index 5321fada3..9da6d0228 100644 --- a/babel.config.js +++ b/babel.config.js @@ -5,6 +5,6 @@ module.exports = { plugins: ['replace-ts-export-assignment'], presets: [ '@babel/preset-typescript', - ['@babel/preset-env', { targets: { node: 8 } }], + ['@babel/preset-env', { targets: { node: 10 } }], ], }; diff --git a/package.json b/package.json index 93721b5f6..bed565dcb 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "eslint": ">=5" }, "engines": { - "node": ">=8" + "node": ">=10" }, "release": { "plugins": [ diff --git a/tsconfig.json b/tsconfig.json index fb22ad4db..6c339a074 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "es2015", "module": "commonjs", "moduleResolution": "node", + "lib": ["es2018"], "noEmit": true, "noImplicitReturns": true, "strict": true,