Skip to content

Commit

Permalink
fix(node): add defensive check for architect to node migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpearce committed Apr 27, 2020
1 parent 5b1047e commit 09baaaa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 09baaaa

Please sign in to comment.