This commit is contained in:
Dax Raad
2025-12-07 17:03:38 -05:00
parent 6667856ba5
commit 66a34798a4
61 changed files with 8874 additions and 1086 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`