Skip to content

Commit a6bfff4

Browse files
committed
build: target the correct ES version according to the supported Node version
1 parent 070f634 commit a6bfff4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tsconfig.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"baseUrl": ".",
44
"outDir": "dist",
55
"sourceMap": false,
6-
"target": "esnext",
6+
"target": "ES2019",
77
"module": "commonjs",
88
"moduleResolution": "node",
99
"allowJs": false,
@@ -15,12 +15,8 @@
1515
"esModuleInterop": true,
1616
"removeComments": false,
1717
"jsx": "preserve",
18-
"lib": ["esnext"],
19-
"types": [
20-
"jest",
21-
"jscodeshift",
22-
"node"
23-
],
24-
"rootDir": ".",
18+
"lib": ["ES2019"],
19+
"types": ["jest", "jscodeshift", "node"],
20+
"rootDir": "."
2521
}
2622
}

0 commit comments

Comments
 (0)