Skip to content

Commit

Permalink
Merge pull request #260 from ChristophRSG/schematic-format-json
Browse files Browse the repository at this point in the history
v12: format JSON when updating angular.json
  • Loading branch information
manfredsteyer authored Jul 5, 2021
2 parents 34e2564 + 7705c83 commit eccb261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/schematics/utils/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export function getWorkspace(tree: Tree) {
}

export function updateWorkspace(tree: Tree, workspace: any) {
tree.overwrite('angular.json', JSON.stringify(workspace));
}
tree.overwrite('angular.json', JSON.stringify(workspace, null, 2));
}

0 comments on commit eccb261

Please sign in to comment.