Extract generated OpenAPI code into LuminateAPI target
This commit is contained in:
parent
91faf3c0f4
commit
dc4fb77a66
5 changed files with 12 additions and 2 deletions
|
|
@ -14,16 +14,24 @@ let package = Package(
|
|||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "LuminateCore",
|
||||
name: "LuminateAPI",
|
||||
dependencies: [
|
||||
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
||||
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
|
||||
.product(name: "SQLite", package: "SQLite.swift"),
|
||||
],
|
||||
plugins: [
|
||||
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: "LuminateCore",
|
||||
dependencies: [
|
||||
"LuminateAPI",
|
||||
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
||||
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
|
||||
.product(name: "SQLite", package: "SQLite.swift"),
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: "LuminateDI",
|
||||
dependencies: [
|
||||
|
|
|
|||
1
Sources/LuminateAPI/LuminateAPI.swift
Normal file
1
Sources/LuminateAPI/LuminateAPI.swift
Normal file
|
|
@ -0,0 +1 @@
|
|||
public enum LuminateAPI {}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
@_exported import LuminateAPI
|
||||
@_exported import OpenAPIRuntime
|
||||
@_exported import OpenAPIURLSession
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue