Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425import { defineConfig } from "kubb/config";import { pluginFetch } from "@kubb/plugin-fetch";import { pluginTs } from "@kubb/plugin-ts";
export default defineConfig({ root: ".", input: "./src/events/events.openapi.json", output: { path: "./src/events/openapi", barrel: false, clean: true, postGenerate: [ { name: "fix-extensions", command: "find ./src/events/openapi -name '*.ts' -type f -exec sed -i '' -E \"s/from '(\\.[^']*)'/from '\\1.ts'/g; s/\\.ts\\.ts'/\\.ts'/g\" {} +", }, ], }, plugins: [ pluginTs({ output: { path: "types.ts", mode: "file" } }), pluginFetch({ output: { path: "client.ts", mode: "file" } }), ],});