chore: add additional types to the feature detection guad
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user