Skip to content

Commit e1095ed

Browse files
authored
refactor(tsc): return the result of runTsc (#5517)
1 parent fc6480e commit e1095ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tsc/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ export function run(tscPath = require.resolve('typescript/lib/tsc')) {
4444
);
4545

4646
try {
47-
main();
47+
return main();
4848
}
4949
catch (err) {
5050
if (err === extensionsChangedException) {
51-
main();
51+
return main();
5252
}
5353
else {
5454
throw err;

0 commit comments

Comments
 (0)