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) } }