Updated the target and test target definitions in the Package file.

This commit is contained in:
2025-09-17 19:14:34 +02:00
parent bb60fd8309
commit 1c4f98973b
3 changed files with 29 additions and 12 deletions
+27 -11
View File
@@ -1,26 +1,42 @@
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "hummingbird-docc-middleware",
name: DocCMiddleware.package,
platforms: [
.iOS(.v17),
.macCatalyst(.v17),
.macOS(.v14),
.tvOS(.v17),
.visionOS(.v1)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "hummingbird-docc-middleware",
targets: ["hummingbird-docc-middleware"]
name: DocCMiddleware.package,
targets: [DocCMiddleware.target]
),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "hummingbird-docc-middleware"
name: DocCMiddleware.target,
path: "Sources/DocCMiddleware",
swiftSettings: [.enableExperimentalFeature("StrictConcurrency=complete")]
),
.testTarget(
name: "hummingbird-docc-middlewareTests",
dependencies: ["hummingbird-docc-middleware"]
name: DocCMiddleware.test,
dependencies: [
.byName(name: DocCMiddleware.target)
],
path: "Tests/DocCMiddleware"
),
]
)
// MARK: - Constants
enum DocCMiddleware {
static let package = "hummingbird-docc-middleware"
static let target = "DocCMiddleware"
static let test = "\(DocCMiddleware.target)Tests"
}