mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix not starting with sentryDSN configured - Make sure that all beforeElectronIsReady runables are run completely syncronously - Fix when setupSentry is to be run (namely before electron is ready) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix tests Signed-off-by: Sebastian Malton <sebastian@malton.name>
31 lines
892 B
TypeScript
31 lines
892 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
// Main process
|
|
|
|
import * as Mobx from "mobx";
|
|
import * as LensExtensionsCommonApi from "../extensions/common-api";
|
|
import * as LensExtensionsMainApi from "../extensions/main-api";
|
|
import { getDi } from "./getDi";
|
|
import startMainApplicationInjectable from "./start-main-application/start-main-application.injectable";
|
|
|
|
const di = getDi();
|
|
|
|
const startApplication = di.inject(startMainApplicationInjectable);
|
|
|
|
void startApplication();
|
|
|
|
/**
|
|
* Exports for virtual package "@k8slens/extensions" for main-process.
|
|
* All exporting names available in global runtime scope:
|
|
* e.g. global.Mobx, global.LensExtensions
|
|
*/
|
|
const LensExtensions = {
|
|
Common: LensExtensionsCommonApi,
|
|
Main: LensExtensionsMainApi,
|
|
};
|
|
|
|
export { Mobx, LensExtensions };
|