sync
This commit is contained in:
parent
6357869e81
commit
22d92aa505
20 changed files with 126 additions and 964 deletions
9
scripts/publish.ts
Executable file
9
scripts/publish.ts
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
import pkg from "../package.json"
|
||||
|
||||
const version = process.env["VERSION"]
|
||||
|
||||
await import("./stainless.ts")
|
||||
15
scripts/stainless.ts
Executable file
15
scripts/stainless.ts
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
await $`bun run ./packages/opencode/src/index.ts generate > openapi.json`
|
||||
await $`stl builds create --branch dev --pull --allow-empty --+target go --+target typescript`
|
||||
await $`rm -rf packages/sdk`
|
||||
await $`mkdir -p packages/sdk`
|
||||
|
||||
await $`mv opencode-go/ packages/sdk/go`
|
||||
await $`rm -rf packages/sdk/go/.git`
|
||||
|
||||
await $`mv opencode-typescript/ packages/sdk/js`
|
||||
await $`rm -rf packages/sdk/js/.git`
|
||||
await $`rm -rf packages/sdk/js/yarn.lock`
|
||||
Loading…
Add table
Add a link
Reference in a new issue