From 5df93623cfcdf20a7b5477438ef2ff441403395e Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Tue, 16 Oct 2018 15:34:57 +0200 Subject: [PATCH] add strict null task --- .vscode/tasks.json | 10 ++++++++++ package.json | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2239597b1f3..81ba39492ef 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -28,6 +28,16 @@ } } }, + { + "type": "npm", + "script": "strict-null-check-watch", + "label": "TS - Strict Null Checks", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "problemMatcher": "$tsc-watch" + }, { "type": "gulp", "task": "tslint", diff --git a/package.json b/package.json index 5c2461cb901..5c2344a666a 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "smoketest": "cd test/smoke && node test/index.js", "monaco-compile-check": "tsc -p src/tsconfig.monaco.json --noEmit", "download-builtin-extensions": "node build/lib/builtInExtensions.js", - "strict-null-check": "tsc -p src/tsconfig.strictNullChecks.json" + "strict-null-check": "tsc -p src/tsconfig.strictNullChecks.json", + "strict-null-check-watch": "tsc -p src/tsconfig.strictNullChecks.json --watch" }, "dependencies": { "applicationinsights": "1.0.5",