Extract generated OpenAPI code into LuminateAPI target

This commit is contained in:
Brendan Szymanski 2026-06-14 20:08:22 -04:00
parent 91faf3c0f4
commit dc4fb77a66
5 changed files with 12 additions and 2 deletions

View file

@ -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: [

View file

@ -0,0 +1 @@
public enum LuminateAPI {}

View file

@ -1,3 +1,4 @@
@_exported import LuminateAPI
@_exported import OpenAPIRuntime
@_exported import OpenAPIURLSession