From e0e2344af97e9fef32098a41b41ec6840526b6e1 Mon Sep 17 00:00:00 2001 From: Peter Pistorius Date: Wed, 5 Aug 2020 13:47:20 +0200 Subject: [PATCH] Make tsconfig build into a cache directory. --- .gitignore | 2 +- .prettierignore | 1 - packages/api/tsconfig.json | 4 ++-- packages/auth/tsconfig.json | 4 ++-- packages/core/tsconfig.json | 4 ++-- packages/dev-server/tsconfig.json | 4 ++-- packages/forms/tsconfig.json | 6 +++--- packages/internal/tsconfig.json | 4 ++-- packages/structure/tsconfig.json | 4 ++-- packages/testing/tsconfig.json | 4 ++-- packages/web/tsconfig.json | 4 ++-- tsconfig.compilerOption.json | 1 + 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index bf7b2a6a22bd..824f83bcc077 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .DS_Store node_modules dist -packages/api/importAll.macro.js +.buildcache lerna-debug.log yarn-error.log **/*.tsbuildinfo diff --git a/.prettierignore b/.prettierignore index 6f5108cc85c1..b33452924a44 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,4 @@ **/dist -packages/api/importAll.macro.js # Do not format Markdown files to allow easier documentation contribution *.md diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index a09654e0172d..b9dbe4a87245 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": ["src", "src/../package.json"], "references": [ diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json index 587de9eeaef5..d188d9e75915 100644 --- a/packages/auth/tsconfig.json +++ b/packages/auth/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", - "outDir": "dist", "rootDir": "src", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": ["src"], } diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 97f2330dd32c..ab9e2ed7ce3a 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist" + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": ["src"], "references": [ diff --git a/packages/dev-server/tsconfig.json b/packages/dev-server/tsconfig.json index f8928c1729a6..66ffc39f0677 100644 --- a/packages/dev-server/tsconfig.json +++ b/packages/dev-server/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist" + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": ["src", "ambient.d.ts"], "references": [{ "path": "../internal" }] diff --git a/packages/forms/tsconfig.json b/packages/forms/tsconfig.json index f469a9e0cde2..8f21166db1f7 100644 --- a/packages/forms/tsconfig.json +++ b/packages/forms/tsconfig.json @@ -1,12 +1,12 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "files": [ - "src/types.d.ts" + "./src/types.d.ts" ] } diff --git a/packages/internal/tsconfig.json b/packages/internal/tsconfig.json index 9c7da02c451b..c4195092b9e8 100644 --- a/packages/internal/tsconfig.json +++ b/packages/internal/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist" + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": ["src", "./ambient.d.ts"], } diff --git a/packages/structure/tsconfig.json b/packages/structure/tsconfig.json index 682f596e3617..3343e2db75c1 100644 --- a/packages/structure/tsconfig.json +++ b/packages/structure/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", "experimentalDecorators": true, "noImplicitReturns": false, "noImplicitAny": false, diff --git a/packages/testing/tsconfig.json b/packages/testing/tsconfig.json index 0eb33d4ca1c4..72ab4928fedb 100644 --- a/packages/testing/tsconfig.json +++ b/packages/testing/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "include": [ "src" diff --git a/packages/web/tsconfig.json b/packages/web/tsconfig.json index 4cee149049ac..497d9caa617b 100644 --- a/packages/web/tsconfig.json +++ b/packages/web/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../../tsconfig.compilerOption.json", "compilerOptions": { - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", "baseUrl": ".", "rootDir": "src", - "outDir": "dist", + "tsBuildInfoFile": ".buildcache/tsconfig.tsbuildinfo", + "outDir": ".buildcache", }, "references": [ { diff --git a/tsconfig.compilerOption.json b/tsconfig.compilerOption.json index 8257494a08c8..b9100b238b96 100644 --- a/tsconfig.compilerOption.json +++ b/tsconfig.compilerOption.json @@ -7,6 +7,7 @@ "emitDeclarationOnly": true, "sourceMap": true, "composite": true, + "incremental": true, "strict": true, "esModuleInterop": true, "noUnusedLocals": true,