mirror of
https://github.com/sst/opencode.git
synced 2025-08-23 14:34:08 +00:00
15 lines
433 B
TypeScript
Executable file
15 lines
433 B
TypeScript
Executable file
#!/usr/bin/env bun
|
|
import { $ } from "bun"
|
|
const dir = new URL(".", import.meta.url).pathname
|
|
process.chdir(dir)
|
|
|
|
console.log("=== Generating Stainless SDK ===")
|
|
console.log(process.cwd())
|
|
|
|
await $`rm -rf go`
|
|
await $`bun run ../../opencode/src/index.ts generate > openapi.json`
|
|
await $`stl builds create --branch dev --pull --allow-empty --+target go`
|
|
|
|
await $`rm -rf ../go`
|
|
await $`mv opencode-go/ ../go`
|
|
await $`rm -rf ../go/.git`
|