mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-12 11:48:42 +00:00
ci: handle case where generate.yml fails better
This commit is contained in:
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`
|
||||
Reference in New Issue
Block a user