Skip to content

Commit

Permalink
Merge pull request #15 from Wei18/chore/sorted/sources
Browse files Browse the repository at this point in the history
Sorted sources.
  • Loading branch information
Wei18 authored Jan 11, 2024
2 parents 85a04f7 + 17b6fe0 commit 3c70584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Scripts/PackageBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ struct SourcesBuilder {
return true
}

sources = sourceURLs.map {
let folderName = $0.lastPathComponent
sources = sourceURLs.map(\.lastPathComponent).sorted().map {
let folderName = $0
let targetName = folderName.replacingOccurrences(of: "-", with: "_").capitalized
return Source(folderName: folderName, targetName: "GitHubRestAPI\(targetName)")
}
Expand Down
5 changes: 3 additions & 2 deletions Scripts/SPIManifestBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ struct SourcesBuilder {
return true
}

sources = sourceURLs.map {
let folderName = $0.lastPathComponent
sources = sourceURLs.map(\.lastPathComponent).sorted().map {
let folderName = $0
let targetName = folderName.replacingOccurrences(of: "-", with: "_").capitalized
return Source(folderName: folderName, targetName: "GitHubRestAPI\(targetName)")
}
Expand All @@ -87,6 +87,7 @@ struct SPIManifestBuilder {
configs:
- documentation_targets:
\#(targetNamesString)

"""#
}

Expand Down

0 comments on commit 3c70584

Please sign in to comment.