mirror of
https://github.com/sst/opencode.git
synced 2025-08-29 09:24:06 +00:00
sdk: update generated client code and dependencies
This commit is contained in:
parent
691305b825
commit
762f338857
17 changed files with 493 additions and 173 deletions
|
@ -10,11 +10,13 @@ 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",
|
||||
tsConfigPath: path.join(dir, 'tsconfig.json')
|
||||
tsConfigPath: path.join(dir, "tsconfig.json"),
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue