Skip to content

Commit 027decc

Browse files
committed
fix(nx-flutter): fix template type not properly inferred from .metadata file
1 parent b16aee7 commit 027decc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nx-flutter/src/utils/plugin-utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
NxFlutterPluginOptions,
1414
normalizePluginOptions,
1515
} from '../graph/plugin';
16-
import { isFlutterInstalled } from './flutter-utils';
1716

1817
export function getProjectTypeAndTargetsFromFile(
1918
projectRootFile: string,
@@ -34,7 +33,7 @@ export function getProjectTypeAndTargetsFromFile(
3433
if (hasProjectFile({ root }, '.metadata')) {
3534
const projectMetadata = getProjectFileContent({ root }, '.metadata');
3635
template =
37-
(/project_type: (\w)/.exec(projectMetadata)?.[1] as TemplateType) ||
36+
(/project_type: (\w+)/.exec(projectMetadata)?.[1] as TemplateType) ||
3837
'app';
3938
}
4039

0 commit comments

Comments
 (0)