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