mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Add winston formatting support for error causes Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix failing to run built version - Finally make logger fully injectable - Simplify startMainApplication to only have runMany(Sync) invocations to fix time of use bugs related to logger Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove legacy type enforced ipc to fix tests Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix type error Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
34 lines
912 B
TypeScript
34 lines
912 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 { spawn } from "node-pty";
|
|
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();
|
|
|
|
void di.inject(startMainApplicationInjectable);
|
|
|
|
/**
|
|
* 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,
|
|
};
|
|
|
|
const Pty = {
|
|
spawn,
|
|
};
|
|
|
|
export { Mobx, LensExtensions, Pty };
|