From 11f61c5f919cf69aefddfb71f1612f502dbf5f45 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 11 May 2022 23:04:17 -0400 Subject: [PATCH] [dawn-node]: Move TSC config to file. (#1382) This PR pulls the typescript config out of the grunt file and adds the options into the `node.tsconfig.json` file. This also disables the `incremental` flag in order to work around incorrectly regenerating the test suite. The removal of `incremental` takes the Building CTS step to ~14s locally. --- Gruntfile.js | 4 ---- node.tsconfig.json | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index dbd53f2018ec..fe32339aa14d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -62,10 +62,6 @@ module.exports = function (grunt) { 'node_modules/typescript/lib/tsc.js', '--project', 'node.tsconfig.json', '--outDir', 'out-node/', - '--incremental', 'true', - '--tsBuildInfoFile', 'out-node/build.tsbuildinfo', - '--noEmit', 'false', - '--declaration', 'false' ], }, 'copy-assets': { diff --git a/node.tsconfig.json b/node.tsconfig.json index 3b7b6ab9f69f..74707d408d49 100644 --- a/node.tsconfig.json +++ b/node.tsconfig.json @@ -5,7 +5,10 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs" + "module": "commonjs", + "incremental": false, + "noEmit": false, + "declaration": false, }, "exclude": [ @@ -14,4 +17,4 @@ "src/common/runtime/helper/test_worker.ts", "src/webgpu/web_platform/worker/worker_launcher.ts" ] -} \ No newline at end of file +}