fix cmd is null for watchBuild
This commit is contained in:
parent
92891a3096
commit
9c54e2dee7
1 changed files with 1 additions and 2 deletions
|
@ -120,7 +120,6 @@ export default class WatchProject implements Disposable {
|
||||||
workspace.showMessage(`Local & global tsc not found`, 'error')
|
workspace.showMessage(`Local & global tsc not found`, 'error')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let cmd: string
|
|
||||||
let find = await workspace.findUp(['tsconfig.json'])
|
let find = await workspace.findUp(['tsconfig.json'])
|
||||||
if (!find) {
|
if (!find) {
|
||||||
workspace.showMessage('tsconfig.json not found!', 'error')
|
workspace.showMessage('tsconfig.json not found!', 'error')
|
||||||
|
@ -128,7 +127,7 @@ export default class WatchProject implements Disposable {
|
||||||
}
|
}
|
||||||
let root = path.dirname(find)
|
let root = path.dirname(find)
|
||||||
return {
|
return {
|
||||||
cmd,
|
cmd: tscPath,
|
||||||
args: ['-p', 'tsconfig.json', '--watch', 'true', '--pretty', 'false'],
|
args: ['-p', 'tsconfig.json', '--watch', 'true', '--pretty', 'false'],
|
||||||
cwd: root
|
cwd: root
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue