We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d3bc1b commit 1bd1899Copy full SHA for 1bd1899
1 file changed
src/tsc/tsc.ts
@@ -58,7 +58,14 @@ namespace ts {
58
message: report,
59
errorDiagnostic: d => reportDiag(d)
60
};
61
- return sys.exit(performBuild(args.slice(1), createCompilerHost({}), buildHost, sys));
+ const result = performBuild(args.slice(1), createCompilerHost({}), buildHost, sys);
62
+ // undefined = in watch mode, do not exit
63
+ if (result !== undefined) {
64
+ return sys.exit(result);
65
+ }
66
+ else {
67
+ return;
68
69
}
70
71
const commandLine = parseCommandLine(args);
0 commit comments