File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ Get-ChildItem $Dir -Filter "$App.json" -Recurse | ForEach-Object {
40
40
# Parse JSON
41
41
$json = [PSCustomObject ](parse_json - path $file )
42
42
43
- # Sort JSON root properties
44
- $json = [PSCustomObject ](Sort- ScoopManifestRootProperties - JsonAsObject $json )
43
+ # Sort JSON root properties according to schema.json, and level one child properties alphabetically
44
+ $json = [PSCustomObject ](Sort- ScoopManifestProperties - JsonAsObject $json )
45
45
46
46
# Beautify
47
47
$json = [string ](ConvertToPrettyJson - data $json )
Original file line number Diff line number Diff line change @@ -213,7 +213,11 @@ function normalize_values([psobject] $json) {
213
213
return $json
214
214
}
215
215
216
- function Sort-ScoopManifestRootProperties {
216
+ function Sort-ScoopManifestProperties {
217
+ <#
218
+ . SYNOPSIS
219
+ Sort JSON root properties according to schema.json, and level one child properties alphabetically.
220
+ #>
217
221
[OutputType ([PSCustomObject ])]
218
222
219
223
Param (
You can’t perform that action at this time.
0 commit comments