Skip to content

Commit 87b9fa7

Browse files
committed
Commit via running ake Package.swift
1 parent 5eaa3b2 commit 87b9fa7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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
45
import 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+
}

0 commit comments

Comments
 (0)