diff --git a/packages/cli/src/lib/typeDistProject.ts b/packages/cli/src/lib/typeDistProject.ts index 8721f3fa24..59dc503f22 100644 --- a/packages/cli/src/lib/typeDistProject.ts +++ b/packages/cli/src/lib/typeDistProject.ts @@ -125,7 +125,7 @@ function getBackstagePackageFeature$$TypeFromType( const $$type = property .getValueDeclaration() ?.getText() - .match(/(?@backstage\/\w+)/)?.groups?.type; + .match(/(\$\$type: '(?.+)')/)?.groups?.type; if ($$type && isTargetFeatureType($$type)) { return $$type;