renovate/lib/renovate.ts
Rhys Arkins fc2e48dd94
feat: RENOVATE_X_HARD_EXIT (#9152)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-03-16 12:34:43 +00:00

15 lines
385 B
JavaScript

#!/usr/bin/env node
import * as proxy from './proxy';
import * as globalWorker from './workers/global';
proxy.bootstrap();
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(async (): Promise<void> => {
process.exitCode = await globalWorker.start();
// istanbul ignore if
if (process.env.RENOVATE_X_HARD_EXIT) {
process.exit(process.exitCode);
}
})();