fix(sdk): build without legacy sources

This commit is contained in:
Dax Raad 2026-07-21 20:13:27 -04:00
parent c944048bcf
commit da35eac93f

View file

@ -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"