mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
import { getFeature } from "@k8slens/feature-core";
|
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
|
|
|
export const feature = getFeature({
|
|
id: "application",
|
|
|
|
register: (di) => {
|
|
autoRegister({
|
|
di,
|
|
targetModule: module,
|
|
|
|
getRequireContexts: () => [
|
|
require.context("./", true, /\.injectable\.(ts|tsx)$/),
|
|
],
|
|
});
|
|
},
|
|
});
|