From 3a884db3316499af8a99a47d0c6d065370fe92b8 Mon Sep 17 00:00:00 2001 From: Alexey Gusev Date: Sat, 11 Sep 2021 07:17:57 +0300 Subject: [PATCH] enable incremental typescript builds (#1671) --- .gitignore | 3 +++ packages/cspell-bundled-dicts/tsconfig.json | 4 +++- packages/cspell-dynamic-loader/tsconfig.json | 4 +++- packages/cspell-glob/.npmignore | 3 +++ packages/cspell-glob/tsconfig.json | 4 +++- packages/cspell-io/.npmignore | 3 +++ packages/cspell-io/tsconfig.json | 4 +++- packages/cspell-lib/.npmignore | 3 +++ packages/cspell-lib/tsconfig.json | 4 +++- packages/cspell-tools/.npmignore | 3 +++ packages/cspell-tools/tsconfig.json | 4 +++- packages/cspell-trie-lib/.npmignore | 3 +++ packages/cspell-trie-lib/tsconfig.json | 4 +++- packages/cspell-trie/.npmignore | 3 +++ packages/cspell-trie/tsconfig.json | 4 +++- packages/cspell-trie2-lib/.npmignore | 3 +++ packages/cspell-trie2-lib/tsconfig.json | 4 +++- packages/cspell-types/tsconfig.json | 4 +++- packages/cspell/.npmignore | 3 +++ packages/cspell/tsconfig.json | 4 +++- packages/hunspell-reader/.npmignore | 2 ++ packages/hunspell-reader/tsconfig.json | 4 +++- test-packages/test-cspell-glob/tsconfig.json | 4 +++- test-packages/test-cspell-io/tsconfig.json | 4 +++- test-packages/test-cspell-lib-webpack/tsconfig.json | 4 +++- test-packages/test-cspell-lib/tsconfig.json | 4 +++- test-packages/test-cspell-tools/tsconfig.json | 4 +++- test-packages/test-cspell/tsconfig.json | 4 +++- 28 files changed, 83 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index a149a70b830..0ef50580e44 100644 --- a/.gitignore +++ b/.gitignore @@ -72,4 +72,7 @@ typings/ # Do not check sensitive files. .coveralls.yml +# typescript incremental builds cache +.tsbuildinfo + # cspell:ignore pids jscoverage wscript jspm dotenv eslintcache diff --git a/packages/cspell-bundled-dicts/tsconfig.json b/packages/cspell-bundled-dicts/tsconfig.json index 3b50e9b13db..fe0cd082346 100644 --- a/packages/cspell-bundled-dicts/tsconfig.json +++ b/packages/cspell-bundled-dicts/tsconfig.json @@ -60,6 +60,8 @@ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ /* Advanced Options */ "skipLibCheck": true, /* Skip type checking of declaration files. */ - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" } } diff --git a/packages/cspell-dynamic-loader/tsconfig.json b/packages/cspell-dynamic-loader/tsconfig.json index 27c57442108..f640b95577b 100644 --- a/packages/cspell-dynamic-loader/tsconfig.json +++ b/packages/cspell-dynamic-loader/tsconfig.json @@ -19,7 +19,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "dist", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src/**/*.ts", diff --git a/packages/cspell-glob/.npmignore b/packages/cspell-glob/.npmignore index 530f242b611..7c18643ab17 100644 --- a/packages/cspell-glob/.npmignore +++ b/packages/cspell-glob/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-glob/tsconfig.json b/packages/cspell-glob/tsconfig.json index d66dceb6976..fc5cb5e4598 100644 --- a/packages/cspell-glob/tsconfig.json +++ b/packages/cspell-glob/tsconfig.json @@ -13,7 +13,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "dist", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src/**/*.ts", diff --git a/packages/cspell-io/.npmignore b/packages/cspell-io/.npmignore index 530f242b611..7c18643ab17 100644 --- a/packages/cspell-io/.npmignore +++ b/packages/cspell-io/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-io/tsconfig.json b/packages/cspell-io/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/packages/cspell-io/tsconfig.json +++ b/packages/cspell-io/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/packages/cspell-lib/.npmignore b/packages/cspell-lib/.npmignore index 6527dcec6af..ab770f161f8 100644 --- a/packages/cspell-lib/.npmignore +++ b/packages/cspell-lib/.npmignore @@ -4,3 +4,6 @@ __mocks__ **/*.test.* **/*.spec.* **/*.map + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-lib/tsconfig.json b/packages/cspell-lib/tsconfig.json index e95a43c3d06..b43d171491a 100644 --- a/packages/cspell-lib/tsconfig.json +++ b/packages/cspell-lib/tsconfig.json @@ -14,7 +14,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "dist", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src/**/*.ts", diff --git a/packages/cspell-tools/.npmignore b/packages/cspell-tools/.npmignore index 530f242b611..7c18643ab17 100644 --- a/packages/cspell-tools/.npmignore +++ b/packages/cspell-tools/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-tools/tsconfig.json b/packages/cspell-tools/tsconfig.json index 4bd3f3ad008..3e6bcfbcde8 100644 --- a/packages/cspell-tools/tsconfig.json +++ b/packages/cspell-tools/tsconfig.json @@ -11,7 +11,9 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/packages/cspell-trie-lib/.npmignore b/packages/cspell-trie-lib/.npmignore index 95e27d12bcd..4d57000f129 100644 --- a/packages/cspell-trie-lib/.npmignore +++ b/packages/cspell-trie-lib/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-trie-lib/tsconfig.json b/packages/cspell-trie-lib/tsconfig.json index 2c6a1e6de56..cd7b7b340db 100644 --- a/packages/cspell-trie-lib/tsconfig.json +++ b/packages/cspell-trie-lib/tsconfig.json @@ -13,7 +13,9 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/packages/cspell-trie/.npmignore b/packages/cspell-trie/.npmignore index 32a8bc50a72..563cf5073bc 100644 --- a/packages/cspell-trie/.npmignore +++ b/packages/cspell-trie/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-trie/tsconfig.json b/packages/cspell-trie/tsconfig.json index 2c6a1e6de56..cd7b7b340db 100644 --- a/packages/cspell-trie/tsconfig.json +++ b/packages/cspell-trie/tsconfig.json @@ -13,7 +13,9 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/packages/cspell-trie2-lib/.npmignore b/packages/cspell-trie2-lib/.npmignore index 530f242b611..7c18643ab17 100644 --- a/packages/cspell-trie2-lib/.npmignore +++ b/packages/cspell-trie2-lib/.npmignore @@ -22,3 +22,6 @@ tsconfig.json jest.config.js *.log + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell-trie2-lib/tsconfig.json b/packages/cspell-trie2-lib/tsconfig.json index 2c6a1e6de56..cd7b7b340db 100644 --- a/packages/cspell-trie2-lib/tsconfig.json +++ b/packages/cspell-trie2-lib/tsconfig.json @@ -13,7 +13,9 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/packages/cspell-types/tsconfig.json b/packages/cspell-types/tsconfig.json index 27c57442108..f640b95577b 100644 --- a/packages/cspell-types/tsconfig.json +++ b/packages/cspell-types/tsconfig.json @@ -19,7 +19,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "dist", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src/**/*.ts", diff --git a/packages/cspell/.npmignore b/packages/cspell/.npmignore index 6527dcec6af..ab770f161f8 100644 --- a/packages/cspell/.npmignore +++ b/packages/cspell/.npmignore @@ -4,3 +4,6 @@ __mocks__ **/*.test.* **/*.spec.* **/*.map + +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/cspell/tsconfig.json b/packages/cspell/tsconfig.json index eab067c642e..7b5ad609610 100644 --- a/packages/cspell/tsconfig.json +++ b/packages/cspell/tsconfig.json @@ -19,7 +19,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "dist", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src/**/*.ts", diff --git a/packages/hunspell-reader/.npmignore b/packages/hunspell-reader/.npmignore index 652de1182e4..95e9619023e 100644 --- a/packages/hunspell-reader/.npmignore +++ b/packages/hunspell-reader/.npmignore @@ -12,3 +12,5 @@ tsconfig.json tslint.json typings.json +# typescript incremental builds cache +.tsbuildinfo diff --git a/packages/hunspell-reader/tsconfig.json b/packages/hunspell-reader/tsconfig.json index 9e21f49c8c2..a9bdb6cd643 100644 --- a/packages/hunspell-reader/tsconfig.json +++ b/packages/hunspell-reader/tsconfig.json @@ -15,7 +15,9 @@ "preserveConstEnums": false, "outDir": "dist", "lib": ["dom", "dom.iterable", "es2015"], - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "exclude": ["node_modules", "dist"] } diff --git a/test-packages/test-cspell-glob/tsconfig.json b/test-packages/test-cspell-glob/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell-glob/tsconfig.json +++ b/test-packages/test-cspell-glob/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/test-packages/test-cspell-io/tsconfig.json b/test-packages/test-cspell-io/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell-io/tsconfig.json +++ b/test-packages/test-cspell-io/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/test-packages/test-cspell-lib-webpack/tsconfig.json b/test-packages/test-cspell-lib-webpack/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell-lib-webpack/tsconfig.json +++ b/test-packages/test-cspell-lib-webpack/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/test-packages/test-cspell-lib/tsconfig.json b/test-packages/test-cspell-lib/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell-lib/tsconfig.json +++ b/test-packages/test-cspell-lib/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/test-packages/test-cspell-tools/tsconfig.json b/test-packages/test-cspell-tools/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell-tools/tsconfig.json +++ b/test-packages/test-cspell-tools/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src" diff --git a/test-packages/test-cspell/tsconfig.json b/test-packages/test-cspell/tsconfig.json index bc94a673405..6e3d050af7e 100644 --- a/test-packages/test-cspell/tsconfig.json +++ b/test-packages/test-cspell/tsconfig.json @@ -16,7 +16,9 @@ "forceConsistentCasingInFileNames": true, "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "dist" + "outDir": "dist", + "incremental": true, + "tsBuildInfoFile": "./.tsbuildinfo" }, "include": [ "src"