diff --git a/packages/core/src/common/utils/channel/channel.test.ts b/packages/core/src/common/utils/channel/channel.test.ts index 9a361b6770..e582e99afc 100644 --- a/packages/core/src/common/utils/channel/channel.test.ts +++ b/packages/core/src/common/utils/channel/channel.test.ts @@ -208,6 +208,7 @@ describe("channel", () => { handler: () => () => "some-other-value", }); + // @ts-ignore testChannelListenerInMain2Injectable.id += "2"; applicationBuilder.beforeApplicationStart((mainDi) => { diff --git a/packages/open-lens/package.json b/packages/open-lens/package.json index 3a4a62487a..c0ce76327c 100644 --- a/packages/open-lens/package.json +++ b/packages/open-lens/package.json @@ -200,6 +200,10 @@ "@ogre-tools/injectable-extension-for-auto-registration": "^14.0.3", "@ogre-tools/injectable-extension-for-mobx": "^14.0.3", "@ogre-tools/injectable-react": "^14.0.3", + + "@lensapp/feature-core": "*", + "@lensapp/cluster": "*", + "mobx": "^6.7.0", "rimraf": "^4.1.2" }, diff --git a/packages/open-lens/src/main/index.ts b/packages/open-lens/src/main/index.ts index aca3da2bb4..131435a471 100644 --- a/packages/open-lens/src/main/index.ts +++ b/packages/open-lens/src/main/index.ts @@ -3,6 +3,11 @@ import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registra import { runInAction } from "mobx"; import { createApp, mainExtensionApi as Main, commonExtensionApi as Common } from "@k8slens/core/main"; +import { registerFeature } from '@lensapp/feature-core'; + +// @ts-ignore +import clusterFeature from '@lensapp/cluster/main'; + const di = createContainer("main"); const app = createApp({ di, @@ -19,6 +24,8 @@ runInAction(() => { require.context("../common", true, CONTEXT_MATCHER_FOR_NON_FEATURES), ], }); + + registerFeature(di, clusterFeature); } catch (err) { console.error(err); process.exit(1);