Skip to content

Commit

Permalink
format JSON when updating angular.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophRSG committed May 5, 2021
1 parent bcb7552 commit 7705c83
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 7705c83

Please sign in to comment.