From 686d6c2f515e0b7a652d75bb0838832a2e8b4383 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 27 Aug 2024 16:48:44 +0200 Subject: [PATCH] chore: add additional types to the feature detection guad Signed-off-by: blam --- packages/frontend-app-api/src/wiring/discovery.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frontend-app-api/src/wiring/discovery.ts b/packages/frontend-app-api/src/wiring/discovery.ts index 4e50290350..f80bf47aa8 100644 --- a/packages/frontend-app-api/src/wiring/discovery.ts +++ b/packages/frontend-app-api/src/wiring/discovery.ts @@ -84,6 +84,10 @@ export function getAvailableFeatures(config: Config): FrontendFeature[] { function isBackstageFeature(obj: unknown): obj is FrontendFeature { if (obj !== null && typeof obj === 'object' && '$$type' in obj) { return ( + obj.$$type === '@backstage/FrontendPlugin' || + obj.$$type === '@backstage/FrontendModule' || + // TODO: Remove this once the old plugin type and extension overrides + // are no longer supported obj.$$type === '@backstage/BackstagePlugin' || obj.$$type === '@backstage/ExtensionOverrides' );