From 59e809340217979a654dbeb3f567cba265318138 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Sun, 6 Oct 2019 19:43:39 +0800 Subject: [PATCH] fix watchBuild task failed --- src/server/features/watchBuild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/features/watchBuild.ts b/src/server/features/watchBuild.ts index 741fa54..0704fb5 100644 --- a/src/server/features/watchBuild.ts +++ b/src/server/features/watchBuild.ts @@ -121,7 +121,7 @@ export default class WatchProject implements Disposable { if (res) { let file = path.join(path.dirname(res), 'node_modules/.bin/tsc') if (fs.existsSync(file)) { - cmd = './node_modules/.bin/tsc' + cmd = file root = path.dirname(res) } }