fix(vue): make sure project is in normalizedOptions (#19690)

This commit is contained in:
MaxKless 2023-10-18 15:15:17 +02:00 committed by GitHub
parent 62240262d6
commit aa57429c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -60,6 +60,7 @@ export async function normalizeOptions(
className,
fileName: componentFileName,
projectSourceRoot,
projectName,
};
}
@ -68,7 +69,8 @@ export function addExportsToBarrel(host: Tree, options: NormalizedSchema) {
tsModule = ensureTypescript();
}
const workspace = getProjects(host);
const isApp = workspace.get(options.project).projectType === 'application';
const isApp =
workspace.get(options.projectName).projectType === 'application';
if (options.export && !isApp) {
const indexFilePath = joinPathFragments(

View File

@ -29,6 +29,7 @@ export interface Schema {
}
export interface NormalizedSchema extends Schema {
projectName: string;
projectSourceRoot: string;
fileName: string;
className: string;