wip: plugins

This commit is contained in:
Dax Raad
2025-08-02 16:47:11 -04:00
parent c9bffc0f46
commit 09c4b71632
34 changed files with 2765 additions and 2484 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bun
const dir = new URL("..", import.meta.url).pathname
process.chdir(dir)
import { $ } from "bun"
const version = process.env["OPENCODE_VERSION"]
if (!version) {
throw new Error("OPENCODE_VERSION is required")
}
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
await $`bun tsc`
await $`bun pm version --allow-same-version --no-git-tag-version ${version}`
if (snapshot) {
await $`bun publish --tag snapshot`
await $`git checkout package.json`
}
if (!snapshot) {
await $`bun publish`
}