Skip to content

Commit

Permalink
fix(igx,upgrade): ignore projects without sourceRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
damyanpetev committed Jun 3, 2020
1 parent a6b25ff commit 6d64d30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/igx-templates/Update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export class HomeComponent {
"node_modules/igniteui-angular/styles/igniteui-angular.css",
"node_modules/igniteui-dockmanager/styles/themes/test"
]
}
},
"test-e2e": {}
}
}`,
expected:
Expand All @@ -155,7 +156,8 @@ export class HomeComponent {
"node_modules/@infragistics/igniteui-angular/styles/igniteui-angular.css",
"node_modules/@infragistics/igniteui-dockmanager/styles/themes/test"
]
}
},
"test-e2e": {}
}
}`}, {
path: "src/app.module.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/igx-templates/Update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export async function updateWorkspace(rootPath: string): Promise<boolean> {
}

for (const entry of Object.keys(workspaceConfig.projects)) {
workspaces.push(path.join(rootPath, workspaceConfig.projects[entry].sourceRoot));
if (workspaceConfig.projects[entry].sourceRoot) {
// ignore projects without sourceRoot (likely older e2e proj)
workspaces.push(path.join(rootPath, workspaceConfig.projects[entry].sourceRoot));
}
}
// once all workspace are gotten, get all files for all workspaces
const logicFiles = [];
Expand Down

0 comments on commit 6d64d30

Please sign in to comment.