mirror of
https://github.com/sst/opencode.git
synced 2025-08-23 22:44:08 +00:00
ci: ignore
This commit is contained in:
parent
7e763e1c06
commit
53aa899e45
4 changed files with 5 additions and 7 deletions
|
@ -4,7 +4,6 @@ const dir = new URL("..", import.meta.url).pathname
|
|||
process.chdir(dir)
|
||||
|
||||
import { $ } from "bun"
|
||||
import fs from "fs/promises"
|
||||
import path from "path"
|
||||
|
||||
console.log("=== Generating JS SDK ===")
|
||||
|
@ -12,8 +11,7 @@ console.log()
|
|||
|
||||
import { createClient } from "@hey-api/openapi-ts"
|
||||
|
||||
await fs.rm(path.join(dir, "src/gen"), { recursive: true, force: true })
|
||||
await $`bun run ./src/index.ts generate > openapi.json`.cwd(path.resolve(dir, "../../opencode"))
|
||||
await $`bun dev generate > openapi.json`.cwd(path.resolve(dir, "../../opencode"))
|
||||
|
||||
await createClient({
|
||||
input: "./openapi.json",
|
||||
|
@ -37,6 +35,3 @@ await createClient({
|
|||
],
|
||||
})
|
||||
await $`bun prettier --write src/gen`
|
||||
|
||||
await $`rm -rf dist`
|
||||
await $`bun tsc`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue