mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
when generating sdk only format sdk, much faster (#23122)
This commit is contained in:
parent
ce0cfb0ea5
commit
797953c88d
2 changed files with 4 additions and 2 deletions
|
|
@ -2,4 +2,6 @@
|
|||
|
||||
import { $ } from "bun"
|
||||
|
||||
await $`bun run prettier --ignore-unknown --write .`
|
||||
const dir = Bun.argv[2] ?? "."
|
||||
|
||||
await $`bun run prettier --ignore-unknown --write ${dir}`
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ await $`bun ./packages/sdk/js/script/build.ts`
|
|||
|
||||
await $`bun dev generate > ../sdk/openapi.json`.cwd("packages/opencode")
|
||||
|
||||
await $`./script/format.ts`
|
||||
await $`./script/format.ts ./packages/sdk`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue