From 00e047f70150744b451f52cb0a066cbb6a31a55d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 27 Nov 2019 21:43:39 +0200 Subject: [PATCH] Change target in tsconfig from esnext to es2018 to support optional chaining/nullish coalescing on Node.js 12 --- backend/tsconfig.json | 3 +-- dashboard/tsconfig.json | 2 +- shared/tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 2b555b99..1bc9478e 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -6,9 +6,8 @@ "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, - "target": "esnext", + "target": "es2018", "lib": [ - "es2017", "esnext" ], "baseUrl": ".", diff --git a/dashboard/tsconfig.json b/dashboard/tsconfig.json index bc0389ac..42745a2a 100644 --- a/dashboard/tsconfig.json +++ b/dashboard/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "moduleResolution": "node", "module": "esnext", - "target": "esnext", + "target": "es2018", "sourceMap": true, "noImplicitAny": false, "allowSyntheticDefaultImports": true, diff --git a/shared/tsconfig.json b/shared/tsconfig.json index d4ca702c..a9c70fd7 100644 --- a/shared/tsconfig.json +++ b/shared/tsconfig.json @@ -6,7 +6,7 @@ "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, - "target": "esnext", + "target": "es2018", "lib": [ "esnext" ],