Skip to content

Commit 9071faa

Browse files
authored
fix(schematics): ng upgrade when e2e is present, fixes #2924 (#2927)
1 parent c006da8 commit 9071faa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/schematics/update/v7/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export const ngUpdate = (): Rule => (
5050
throw new SchematicsException('Could not locate angular.json');
5151
}
5252

53-
const srcRoots: string[] = Object.values(angularJson.projects).map((it: any) => join('/', it.sourceRoot));
53+
// TODO investigate if this is correct in Windows
54+
const srcRoots: string[] = Object.values(angularJson.projects).map((it: any) =>
55+
join(...['/', it.root, it.sourceRoot].filter(it => !!it))
56+
);
5457

5558
host.visit(filePath => {
5659
if (

0 commit comments

Comments
 (0)