fix(ngcc): force ngcc to exit on error (#36622)

For some reason (possibly related to async/await promises)
the ngcc process is not exiting when spawned from the CLI
when there has been an error (such as when it timesout waiting
for a lockfile to become free).

Calling `process.exit()` directly fixes this.

Fixes #36616

PR Close #36622
This commit is contained in:
Pete Bacon Darwin 2020-04-14 15:40:55 +01:00 committed by atscott
parent 0147de9044
commit 663b768780
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ if (require.main === module) {
process.exitCode = 0; process.exitCode = 0;
} catch (e) { } catch (e) {
console.error(e.stack || e.message); console.error(e.stack || e.message);
process.exitCode = 1; process.exit(1);
} }
})(); })();
} }