Skip to content

Commit 3c70584

Browse files
authored
Merge pull request #15 from Wei18/chore/sorted/sources
Sorted sources.
2 parents 85a04f7 + 17b6fe0 commit 3c70584

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Scripts/PackageBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ struct SourcesBuilder {
6666
return true
6767
}
6868

69-
sources = sourceURLs.map {
70-
let folderName = $0.lastPathComponent
69+
sources = sourceURLs.map(\.lastPathComponent).sorted().map {
70+
let folderName = $0
7171
let targetName = folderName.replacingOccurrences(of: "-", with: "_").capitalized
7272
return Source(folderName: folderName, targetName: "GitHubRestAPI\(targetName)")
7373
}

Scripts/SPIManifestBuilder.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ struct SourcesBuilder {
6666
return true
6767
}
6868

69-
sources = sourceURLs.map {
70-
let folderName = $0.lastPathComponent
69+
sources = sourceURLs.map(\.lastPathComponent).sorted().map {
70+
let folderName = $0
7171
let targetName = folderName.replacingOccurrences(of: "-", with: "_").capitalized
7272
return Source(folderName: folderName, targetName: "GitHubRestAPI\(targetName)")
7373
}
@@ -87,6 +87,7 @@ struct SPIManifestBuilder {
8787
configs:
8888
- documentation_targets:
8989
\#(targetNamesString)
90+
9091
"""#
9192
}
9293

0 commit comments

Comments
 (0)