Skip to content

Commit 40b01dc

Browse files
committed
Make group param optional
1 parent addc8d2 commit 40b01dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CompilerPluginSupport/TargetExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ public extension Target {
1616
@available(_PackageDescription, introduced: 999.0)
1717
static func macro(
1818
name: String,
19-
group: TargetGroup,
19+
group: TargetGroup?,
2020
dependencies: [Dependency] = [],
2121
path: String? = nil,
2222
exclude: [String] = [],
2323
sources: [String]? = nil
2424
) -> Target {
2525
return Target(name: name,
26-
group: group,
26+
group: group ?? .package,
2727
dependencies: dependencies,
2828
path: path,
2929
exclude: exclude,

0 commit comments

Comments
 (0)