Skip to content

Commit b4da184

Browse files
Fix Swift 6 build
1 parent c067113 commit b4da184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/PackageToJS/PackageToJS.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Foundation
1+
@preconcurrency import Foundation // For "stderr"
22
import PackagePlugin
33

44
@main
@@ -31,7 +31,7 @@ struct PackageToJS: CommandPlugin {
3131
}
3232

3333
static let friendlyBuildDiagnostics:
34-
[(_ build: PackageManager.BuildResult, _ arguments: [String]) -> String?] = [
34+
[@Sendable (_ build: PackageManager.BuildResult, _ arguments: [String]) -> String?] = [
3535
(
3636
// In case user misses the `--swift-sdk` option
3737
{ build, arguments in

0 commit comments

Comments
 (0)