From 6a905abba3f6ac8ccbc38366e50f756ac695e330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 21 May 2019 10:39:14 +0200 Subject: [PATCH] feat(build): enable incremental compilation --- .gitignore | 1 + packages/build/config/tsconfig.common.json | 2 ++ packages/cli/generators/project/templates/tsconfig.json.ejs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index f62f570e7480..fa6ce59fa300 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ benchmark/dist .sandbox packages/cli/generators/datasource/connectors.json docs/site/readmes +**/tsconfig.build.tsbuildinfo # Exclude all files under sandbox except README.md and example /sandbox/* diff --git a/packages/build/config/tsconfig.common.json b/packages/build/config/tsconfig.common.json index 5aa85c2b0b3b..a3791d4ccf47 100644 --- a/packages/build/config/tsconfig.common.json +++ b/packages/build/config/tsconfig.common.json @@ -10,6 +10,8 @@ // FIXME(bajtos) LB4 is not compatible with this setting yet "strictPropertyInitialization": false, + "incremental": true, + "lib": ["es2018", "esnext.asynciterable"], "module": "commonjs", "moduleResolution": "node", diff --git a/packages/cli/generators/project/templates/tsconfig.json.ejs b/packages/cli/generators/project/templates/tsconfig.json.ejs index 8ffddb55b332..18efabbcecf0 100644 --- a/packages/cli/generators/project/templates/tsconfig.json.ejs +++ b/packages/cli/generators/project/templates/tsconfig.json.ejs @@ -17,6 +17,8 @@ "resolveJsonModule": true, "skipLibCheck": true, + "incremental": true, + "lib": ["es2018", "esnext.asynciterable"], "module": "commonjs", "moduleResolution": "node",