Skip to content

Commit

Permalink
fix(angular): reuse already determined format
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Aug 16, 2023
1 parent cd023cb commit f06619f
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ export async function normalizeOptions(
host: Tree,
options: Partial<Schema>
): Promise<NormalizedSchema> {
const { projectName: appProjectName, projectRoot: appProjectRoot } =
await determineProjectNameAndRootOptions(host, {
name: options.name,
projectType: 'application',
directory: options.directory,
projectNameAndRootFormat: options.projectNameAndRootFormat,
rootProject: options.rootProject,
});
const {
projectName: appProjectName,
projectRoot: appProjectRoot,
projectNameAndRootFormat,
} = await determineProjectNameAndRootOptions(host, {
name: options.name,
projectType: 'application',
directory: options.directory,
projectNameAndRootFormat: options.projectNameAndRootFormat,
rootProject: options.rootProject,
});
options.rootProject = appProjectRoot === '.';
options.projectNameAndRootFormat = projectNameAndRootFormat;

let e2eProjectName = 'e2e';
let e2eProjectRoot = 'e2e';
Expand Down

0 comments on commit f06619f

Please sign in to comment.