mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Don't bail wrongly in tsc -b -w
This commit is contained in:
parent
9d3bc1b0a4
commit
1bd1899d5a
@ -58,7 +58,14 @@ namespace ts {
|
||||
message: report,
|
||||
errorDiagnostic: d => reportDiag(d)
|
||||
};
|
||||
return sys.exit(performBuild(args.slice(1), createCompilerHost({}), buildHost, sys));
|
||||
const result = performBuild(args.slice(1), createCompilerHost({}), buildHost, sys);
|
||||
// undefined = in watch mode, do not exit
|
||||
if (result !== undefined) {
|
||||
return sys.exit(result);
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const commandLine = parseCommandLine(args);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user