mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 01:04:22 +01:00
16 lines
458 B
TypeScript
Executable File
16 lines
458 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 --conditions=development ../../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`
|