#! /usr/bin/env node
"use strict";
/* eslint-disable @typescript-eslint/no-unused-vars,@typescript-eslint/no-var-requires */
// eslint-disable @typescript-eslint/ban-ts-comment
// noinspection ES6ConvertRequireIntoImport
Object.defineProperty(exports, "__esModule", { value: true });
// Run in production mode when packaged
if (process.pkg) {
    process.env.NODE_ENV = 'production';
}
// Explicit require axios due to issue: https://github.com/axios/axios/issues/5195
const axios = require('../node_modules/axios/dist/node/axios.cjs');
const server_1 = require("./server");
(0, server_1.launch)().catch((err) => {
    console.error(`Failed to launch sidecar. Reason: ${err.message}`, err);
    (0, server_1.shutdown)().then(() => process.exit(1));
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx5RkFBeUY7QUFDekYsbURBQW1EO0FBQ25ELDJDQUEyQzs7QUFFM0MsdUNBQXVDO0FBQ3ZDLElBQUssT0FBOEMsQ0FBQyxHQUFHLEVBQUUsQ0FBQztJQUN4RCxPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsR0FBRyxZQUFZLENBQUM7QUFDdEMsQ0FBQztBQUVELGtGQUFrRjtBQUNsRixNQUFNLEtBQUssR0FBRyxPQUFPLENBQUMsMkNBQTJDLENBQUMsQ0FBQztBQUVuRSxxQ0FBNEM7QUFFNUMsSUFBQSxlQUFNLEdBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtJQUNyQixPQUFPLENBQUMsS0FBSyxDQUFDLHFDQUFxQyxHQUFHLENBQUMsT0FBTyxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDdkUsSUFBQSxpQkFBUSxHQUFFLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUN6QyxDQUFDLENBQUMsQ0FBQyJ9