Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Dax 2025-12-07 19:04:14 -05:00 committed by GitHub
parent 6667856ba5
commit ea7ec60f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 11182 additions and 1114 deletions

View file

@ -10,13 +10,12 @@ import { createClient } from "@hey-api/openapi-ts"
await $`bun dev generate > ${dir}/openapi.json`.cwd(path.resolve(dir, "../../opencode"))
await $`rm -rf src/gen`
await createClient({
input: "./openapi.json",
output: {
path: "./src/gen",
path: "./src/v2/gen",
tsConfigPath: path.join(dir, "tsconfig.json"),
clean: true,
},
plugins: [
{
@ -28,6 +27,7 @@ await createClient({
instance: "OpencodeClient",
exportFromIndex: false,
auth: false,
paramsStructure: "flat",
},
{
name: "@hey-api/client-fetch",
@ -36,6 +36,8 @@ await createClient({
},
],
})
await $`bun prettier --write src/gen`
await $`bun prettier --write src/v2`
await $`rm -rf dist`
await $`bun tsc`