From 893a563afbd70724662ae391e90a2b2584a4d053 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 18 Jul 2024 20:45:46 +0300 Subject: [PATCH] vscode: Add task to watch build errors --- .vscode/tasks.json | 17 +++++++++++++++++ package.json | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..d5fb9133e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "errors", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "revealProblems": "never" + }, + "runOptions": { + "runOn": "folderOpen" + } + } + ] + } \ No newline at end of file diff --git a/package.json b/package.json index 457b5f06b..05299ace3 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "test-jasmine": "TRILIUM_DATA_DIR=./data-test ts-node ./node_modules/.bin/jasmine", "test-es6": "ts-node -r esm spec-es6/attribute_parser.spec.ts", "test": "npm run test-jasmine && npm run test-es6", - "postinstall": "rimraf ./node_modules/canvas" + "postinstall": "rimraf ./node_modules/canvas", + "errors": "tsc --watch --noEmit" }, "dependencies": { "@braintree/sanitize-url": "6.0.4",