fix(vue): make sure project is in normalizedOptions (#19690)
This commit is contained in:
parent
62240262d6
commit
aa57429c47
@ -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(
|
||||
|
||||
@ -29,6 +29,7 @@ export interface Schema {
|
||||
}
|
||||
|
||||
export interface NormalizedSchema extends Schema {
|
||||
projectName: string;
|
||||
projectSourceRoot: string;
|
||||
fileName: string;
|
||||
className: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user