Skip to content

Commit 58f69fe

Browse files
committed
Drop support for Node.js v10 in favour of Node.js v12
- update tsconfig - set required node version based on https://node.green/#ES2020
1 parent 7192768 commit 58f69fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"lib"
3838
],
3939
"engines": {
40-
"node": ">=v10.24.1"
40+
"node": ">=12.10.0"
4141
},
4242
"repository": "github:Pytal/deploy-env",
4343
"license": "MIT"

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es2018", // Node.js v10
4-
"lib": ["es2018"], // https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
3+
"target": "es2019", // Node.js v12 config based on community repo https://github.com/tsconfig/bases#node-12-tsconfigjson
4+
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"], // Official target mapping https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
55
"module": "commonjs",
66
"outDir": "lib",
77
"declaration": true,

0 commit comments

Comments
 (0)