File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ commit:
2525 tag_name=$(shell basename $(shell dirname $@ ) ) ; \
2626 swift Scripts/GeneratorConfigBuilder.swift $$ tag_name
2727
28- % /Client.swift : % /openapi-generator-config.yml $(OPENAPI_PATH )
28+ % /Client.swift % /Types.swift : % /openapi-generator-config.yml $(OPENAPI_PATH )
2929 mint run apple/swift-openapi-generator generate " $( OPENAPI_PATH) " \
3030 --config " $( @D) /openapi-generator-config.yml" \
3131 --output-directory " $( @D) " ;
3232 @rm " $( @D) /openapi-generator-config.yml" ;
3333 @echo ;
3434
35- Sources/% : Sources/% /Client.swift
35+ Sources/% : Sources/% /Client.swift Sources/ % /Types.swift
3636 @$(MAKE ) commit file=" $@ "
3737
3838# Update openapi specification if needed
Original file line number Diff line number Diff line change 11// swift-tools-version: 5.9
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
4+ import Foundation
45import PackageDescription
56
67/// Generated via `$swift PackageBuilder.swift`
@@ -360,3 +361,9 @@ let package = Package(
360361 ]
361362)
362363
364+ // swift-docc is not needed for package users
365+ if ProcessInfo . processInfo. environment [ " ENABLE_DOCC_SUPPORT " ] == " 1 " {
366+ package . dependencies += [
367+ . package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.3.0 " ) ,
368+ ]
369+ }
You can’t perform that action at this time.
0 commit comments