diff --git a/.swiftformatignore b/.swiftformatignore index cff6e77d..6e7b6990 100644 --- a/.swiftformatignore +++ b/.swiftformatignore @@ -1,4 +1,5 @@ Tests/OpenAPIGeneratorReferenceTests/Resources Sources/swift-openapi-generator/Documentation.docc Examples/**/Generated/* -Examples/**/GeneratedSources/* \ No newline at end of file +Examples/**/GeneratedSources/* +**Package.swift diff --git a/Package.swift b/Package.swift index c27b6235..44e952d8 100644 --- a/Package.swift +++ b/Package.swift @@ -147,3 +147,14 @@ let package = Package( ), ] ) + +// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // +for target in package.targets { + if target.type != .plugin { + var settings = target.swiftSettings ?? [] + // https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md + settings.append(.enableUpcomingFeature("MemberImportVisibility")) + target.swiftSettings = settings + } +} +// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //