renovate/lib/renovate.ts

22 lines
540 B
TypeScript
Raw Normal View History

2017-01-15 14:05:25 +00:00
#!/usr/bin/env node
import { logger } from './logger';
import * as proxy from './proxy';
2019-05-28 09:21:17 +00:00
import * as globalWorker from './workers/global';
2017-01-15 14:05:25 +00:00
// istanbul ignore next
process.on('unhandledRejection', (err) => {
logger.error({ err }, 'unhandledRejection');
});
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);
}
})();