Skip to content

Commit 8872205

Browse files
vovikdrghansl
authored andcommitted
fix(@schematics/angular): generate application with projectRoot is provided
Closes #11925.
1 parent 048366b commit 8872205

File tree

1 file changed

+1
-3
lines changed
  • packages/schematics/angular/application

1 file changed

+1
-3
lines changed

packages/schematics/angular/application/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,8 @@ export default function (options: ApplicationOptions): Rule {
274274
name: `${options.name}-e2e`,
275275
relatedAppName: options.name,
276276
rootSelector: appRootSelector,
277+
projectRoot: newProjectRoot ? `${newProjectRoot}/e2e` : 'e2e',
277278
};
278-
if (options.projectRoot !== undefined) {
279-
e2eOptions.projectRoot = 'e2e';
280-
}
281279

282280
return chain([
283281
addAppToWorkspaceFile(options, workspace),

0 commit comments

Comments
 (0)