From 4281019da3279c3b4ebc0329c28bb384fc048e76 Mon Sep 17 00:00:00 2001 From: James Daniels Date: Tue, 7 Sep 2021 13:47:29 -0400 Subject: [PATCH] Fix ng upgrade when e2e is present --- src/schematics/update/v7/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/schematics/update/v7/index.ts b/src/schematics/update/v7/index.ts index d1a039309..99e76e824 100644 --- a/src/schematics/update/v7/index.ts +++ b/src/schematics/update/v7/index.ts @@ -50,7 +50,10 @@ export const ngUpdate = (): Rule => ( throw new SchematicsException('Could not locate angular.json'); } - const srcRoots: string[] = Object.values(angularJson.projects).map((it: any) => join('/', it.sourceRoot)); + // TODO investigate if this is correct in Windows + const srcRoots: string[] = Object.values(angularJson.projects).map((it: any) => + join(...['/', it.root, it.sourceRoot].filter(it => !!it)) + ); host.visit(filePath => { if (