We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 029e902 commit cbd39ceCopy full SHA for cbd39ce
Package.swift
@@ -49,11 +49,16 @@ for target in package.targets {
49
50
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
51
for target in package.targets {
52
- if target.type != .plugin {
+ switch target.type {
53
+ case .regular, .test, .executable:
54
var settings = target.swiftSettings ?? []
55
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
56
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
57
target.swiftSettings = settings
58
+ case .macro, .plugin, .system, .binary:
59
+ () // not applicable
60
+ @unknown default:
61
+ () // we don't know what to do here, do nothing
62
}
63
64
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
0 commit comments