mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 13:53:44 +00:00
fix(sdk): build without legacy sources
This commit is contained in:
parent
c944048bcf
commit
da35eac93f
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,12 @@ import { createClient } from "@hey-api/openapi-ts"
|
|||
const opencode = path.resolve(dir, "../../opencode")
|
||||
const client = path.resolve(dir, "../../client")
|
||||
|
||||
if (!(await Bun.file(path.join(opencode, "package.json")).exists())) {
|
||||
await $`rm -rf dist`
|
||||
await $`bun tsc`
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
await $`bun dev generate > ${dir}/openapi.json`.cwd(opencode)
|
||||
await $`bun -e ${`
|
||||
import { OpenApi } from "effect/unstable/httpapi"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue