fix(nx): review correction #1530

This commit is contained in:
MSakamaki 2019-07-01 14:44:35 +09:00 committed by Victor Savkin
parent d80c3810cf
commit df77d6c5e8

View File

@ -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(':');