mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 12:39:43 +00:00
ci: handle case where generate.yml fails better
This commit is contained in:
parent
ecc5050838
commit
8d11df1b3b
3 changed files with 38 additions and 18 deletions
12
script/generate.ts
Normal file
12
script/generate.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
// Build SDK
|
||||
await $`bun ./packages/sdk/js/script/build.ts`
|
||||
|
||||
// Generate openapi.json
|
||||
await $`bun dev generate > ../sdk/openapi.json`.cwd("packages/opencode")
|
||||
|
||||
// Format
|
||||
await $`./script/format.ts`
|
||||
Loading…
Add table
Add a link
Reference in a new issue