mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 17:56:44 +00:00
sync
This commit is contained in:
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`
|
||||
Reference in New Issue
Block a user