fix(node): add defensive check for architect to node migration
This commit is contained in:
parent
5b1047e9c3
commit
09baaaa8ba
@ -6,6 +6,10 @@ export default function update(): Rule {
|
||||
updateWorkspaceInTree(workspaceJson => {
|
||||
Object.entries<any>(workspaceJson.projects).forEach(
|
||||
([projectName, project]) => {
|
||||
if (!project.architect) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.entries<any>(project.architect).forEach(
|
||||
([targetName, targetConfig]) => {
|
||||
if (targetConfig.builder === '@nrwl/node:build') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user