Skip to content

Commit

Permalink
fix(nx): review correction #1530
Browse files Browse the repository at this point in the history
  • Loading branch information
MSakamaki authored and vsavkin committed Jul 3, 2019
1 parent d80c381 commit df77d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/schematics/migrations/update-8-0-0/update-8-0-0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ function addDependencies() {
const builders = new Set<string>();
const projects = readJsonInTree(host, 'angular.json').projects;
Object.values<any>(projects)
.filter(project => typeof project === 'object')
.filter(
project =>
typeof project === 'object' && project.hasOwnProperty('architect')
)
.forEach(project => {
Object.values<any>(project.architect).forEach(target => {
const [builderDependency] = target.builder.split(':');
Expand Down

0 comments on commit df77d6c

Please sign in to comment.