This commit is contained in:
Dax Raad 2025-12-07 17:03:38 -05:00
commit 66a34798a4
61 changed files with 8856 additions and 1068 deletions

View file

@ -17,6 +17,7 @@ await createClient({
output: {
path: "./src/gen",
tsConfigPath: path.join(dir, "tsconfig.json"),
clean: true,
},
plugins: [
{
@ -36,6 +37,33 @@ await createClient({
},
],
})
await createClient({
input: "./openapi.json",
output: {
path: "./src/v2/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,
paramsStructure: "flat",
},
{
name: "@hey-api/client-fetch",
exportFromIndex: false,
baseUrl: "http://localhost:4096",
},
],
})
await $`bun prettier --write src/gen`
await $`rm -rf dist`
await $`bun tsc`