#!/usr/bin/env node
import { require_punycode } from "./punycode.js";
import { logger } from "./logger/index.js";
import { bootstrap } from "./proxy.js";
import { instrument, shutdown } from "./instrumentation/index.js";
import { start } from "./workers/global/index.js";
import "source-map-support/register.js";

//#region lib/renovate.ts
var import_punycode = require_punycode();
/* v8 ignore next 3 -- not easily testable */
process.on("unhandledRejection", (err) => {
	logger.error({ err }, "unhandledRejection");
});
bootstrap();
(async () => {
	process.exitCode = await instrument("run", () => start());
	await shutdown();
	/* v8 ignore next 3 -- no test required */
	if (process.env.RENOVATE_X_HARD_EXIT) process.exit(process.exitCode);
})();

//#endregion
export {  };
//# sourceMappingURL=renovate.js.map