2024-10-09 16:28:54 +02:00
|
|
|
// biome-ignore lint/correctness/noNodejsModules: this only used at compile time
|
2024-10-10 15:42:11 +02:00
|
|
|
import { resolve } from "node:path";
|
2024-10-09 16:28:54 +02:00
|
|
|
import { defineConfig } from "@hey-api/openapi-ts";
|
|
|
|
|
|
|
|
// biome-ignore lint/style/noDefaultExport: needed for openapi-ts
|
|
|
|
export default defineConfig({
|
2024-10-10 15:42:11 +02:00
|
|
|
input: resolve(__dirname, "./staticfiles/generated/openapi/schema.json"),
|
2025-03-03 13:33:58 +01:00
|
|
|
output: {
|
2025-03-09 16:30:21 +01:00
|
|
|
path: resolve(__dirname, "./staticfiles/generated/openapi/client"),
|
2025-03-03 13:33:58 +01:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
name: "@hey-api/client-fetch",
|
|
|
|
baseUrl: false,
|
|
|
|
runtimeConfigPath: "./openapi-csrf.ts",
|
|
|
|
exportFromIndex: true,
|
|
|
|
},
|
|
|
|
],
|
2024-10-09 16:28:54 +02:00
|
|
|
});
|