fix(nx): fix migration of angular.json for with no architect property
This commit is contained in:
parent
9278a8e4db
commit
d80c3810cf
@ -32,7 +32,9 @@ function addDependencies() {
|
||||
const dependencies = readJsonInTree(host, 'package.json').dependencies;
|
||||
const builders = new Set<string>();
|
||||
const projects = readJsonInTree(host, 'angular.json').projects;
|
||||
Object.values<any>(projects).forEach(project => {
|
||||
Object.values<any>(projects)
|
||||
.filter(project => typeof project === 'object')
|
||||
.forEach(project => {
|
||||
Object.values<any>(project.architect).forEach(target => {
|
||||
const [builderDependency] = target.builder.split(':');
|
||||
builders.add(builderDependency);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user