wip: plugins

This commit is contained in:
Dax Raad
2025-08-02 16:29:40 -04:00
parent 1c94b7b23c
commit d52932a958
34 changed files with 2765 additions and 2484 deletions
+1
View File
@@ -36,6 +36,7 @@ await createClient({
},
],
})
await $`bun prettier --write src/gen`
await $`rm -rf dist`
await $`bun tsc`
-7
View File
@@ -5,20 +5,13 @@ process.chdir(dir)
import { $ } from "bun"
const version = process.env["OPENCODE_VERSION"]
if (!version) {
throw new Error("OPENCODE_VERSION is required")
}
await import("./generate")
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
await $`bun pm version --allow-same-version --no-git-tag-version ${version}`
if (snapshot) {
await $`bun publish --tag snapshot`
}
if (!snapshot) {
await $`bun publish`
}
await $`bun pm version 0.0.0 --no-git-tag-version`