Skip to content

Commit

Permalink
feat: upgrade ts target
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 9, 2021
1 parent 08d94e8 commit f6b8337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"noImplicitAny": false /* required for js files */,
"strictNullChecks": false /* required for js files */,
"outDir": "./dist",
"target": "es2018",
/* https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping */
"target": "es2020",
"module": "commonjs",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
Expand All @@ -14,7 +15,7 @@
"noImplicitOverride": true,
"experimentalDecorators": true,
"useUnknownInCatchVariables": false /* we aren't prepared for enabling this by default since ts 4.4*/,
"lib": ["es2018"],
"lib": ["es2020"],
"types": ["node", "jest", "jest-extended", "expect-more-jest"],
"allowJs": true,
"checkJs": true
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"strictNullChecks": true,
"noImplicitAny": true,
"lib": ["es2019"]
"lib": ["es2020"]
},
"include": [
"lib/config/app-strings.ts",
Expand Down

0 comments on commit f6b8337

Please sign in to comment.