Skip to content

Commit 73f3539

Browse files
authored
chore: tailor package manifest for SPI doc generation (#65)
1 parent 3f87100 commit 73f3539

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ var includeTargets: [String] = []
9797
var includeProducts: [String] = []
9898

9999
if Context.environment["METACODABLE_CI"] == nil {
100-
unusedDeps.append(contentsOf: ["swift-format", "swift-docc-plugin"])
100+
unusedDeps.append("swift-format")
101+
if Context.environment["SPI_GENERATE_DOCS"] == nil {
102+
unusedDeps.append("swift-docc-plugin")
103+
}
101104
}
102105

103106
if Context.environment["SWIFT_SYNTAX_EXTENSION_MACRO_FIXED"] != nil {

0 commit comments

Comments
 (0)