This commit is contained in:
Dax Raad
2025-12-07 18:58:10 -05:00
parent 9672a7b056
commit 11840191f8
14 changed files with 601 additions and 779 deletions

View File

@@ -12,31 +12,6 @@ await $`bun dev generate > ${dir}/openapi.json`.cwd(path.resolve(dir, "../../ope
await $`rm -rf src/gen`
await createClient({
input: "./openapi.json",
output: {
path: "./src/gen",
tsConfigPath: path.join(dir, "tsconfig.json"),
clean: true,
},
plugins: [
{
name: "@hey-api/typescript",
exportFromIndex: false,
},
{
name: "@hey-api/sdk",
instance: "OpencodeClient",
exportFromIndex: false,
auth: false,
},
{
name: "@hey-api/client-fetch",
exportFromIndex: false,
baseUrl: "http://localhost:4096",
},
],
})
await createClient({
input: "./openapi.json",
output: {