fix watchBuild task failed

This commit is contained in:
chemzqm 2019-10-06 19:43:39 +08:00
parent c943393598
commit 59e8093402

View file

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