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,
|
className,
|
||||||
fileName: componentFileName,
|
fileName: componentFileName,
|
||||||
projectSourceRoot,
|
projectSourceRoot,
|
||||||
|
projectName,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +69,8 @@ export function addExportsToBarrel(host: Tree, options: NormalizedSchema) {
|
|||||||
tsModule = ensureTypescript();
|
tsModule = ensureTypescript();
|
||||||
}
|
}
|
||||||
const workspace = getProjects(host);
|
const workspace = getProjects(host);
|
||||||
const isApp = workspace.get(options.project).projectType === 'application';
|
const isApp =
|
||||||
|
workspace.get(options.projectName).projectType === 'application';
|
||||||
|
|
||||||
if (options.export && !isApp) {
|
if (options.export && !isApp) {
|
||||||
const indexFilePath = joinPathFragments(
|
const indexFilePath = joinPathFragments(
|
||||||
|
|||||||
@ -29,6 +29,7 @@ export interface Schema {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface NormalizedSchema extends Schema {
|
export interface NormalizedSchema extends Schema {
|
||||||
|
projectName: string;
|
||||||
projectSourceRoot: string;
|
projectSourceRoot: string;
|
||||||
fileName: string;
|
fileName: string;
|
||||||
className: string;
|
className: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user