Skip to content

Commit 2478b29

Browse files
committed
fix: reorganize Package.swift extensions
Moved extension String tests property before Target.Dependency extensions for better organization and readability.
1 parent b233efd commit 2478b29

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Package.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ extension String {
77
static let multipartFormCodingURLRouting: Self = "URLRouting"
88
}
99

10+
extension String { var tests: Self { self + " Tests" } }
11+
1012
extension Target.Dependency {
1113
static var multipartFormCoding: Self { .target(name: .multipartFormCoding) }
1214
static var multipartFormCodingURLRouting: Self { .target(name: .multipartFormCodingURLRouting) }
@@ -36,7 +38,10 @@ let package = Package(
3638
dependencies: [
3739
.package(url: "https://github.com/swift-standards/swift-rfc-2045.git", from: "0.1.0"),
3840
.package(url: "https://github.com/swift-standards/swift-rfc-2046.git", from: "0.1.3"),
39-
.package(url: "https://github.com/swift-standards/swift-rfc-7578.git", from: "0.2.1"),
41+
.package(
42+
url: "https://github.com/swift-standards/swift-rfc-7578.git",
43+
from: "0.2.1"
44+
),
4045
.package(url: "https://github.com/pointfreeco/swift-url-routing", from: "0.6.0")
4146
],
4247
targets: [
@@ -66,10 +71,17 @@ let package = Package(
6671
]
6772
)
6873

74+
for target in package.targets {
75+
target.swiftSettings?.append(
76+
contentsOf: [
77+
.enableUpcomingFeature("MemberImportVisibility")
78+
]
79+
)
80+
}
81+
6982
//package.traits.insert(
7083
// .default(
7184
// enabledTraits: ["URLRouting"]
7285
// )
7386
//)
7487

75-
extension String { var tests: Self { self + " Tests" } }

0 commit comments

Comments
 (0)