Updated the target and test target definitions in the Package file.
This commit is contained in:
+27
-11
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user