diff --git a/bin/formatjson.ps1 b/bin/formatjson.ps1 index 84dbab9c2..3705245e1 100644 --- a/bin/formatjson.ps1 +++ b/bin/formatjson.ps1 @@ -21,6 +21,11 @@ if ($type -is [System.IO.DirectoryInfo]) { } $files | % { + # beautify $json = parse_json "$dir$_" | ConvertToPrettyJson + + # convert to 4 spaces + $json = $json -replace "`t",' ' + [System.IO.File]::WriteAllLines("$dir$_", $json) }