mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 20:49:55 +00:00
wip: plugins
This commit is contained in:
parent
ae6e47bb42
commit
ca031278ca
38 changed files with 2784 additions and 2500 deletions
18
packages/plugin/script/publish.ts
Normal file
18
packages/plugin/script/publish.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
const dir = new URL("..", import.meta.url).pathname
|
||||
process.chdir(dir)
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
|
||||
|
||||
await $`bun tsc`
|
||||
|
||||
if (snapshot) {
|
||||
await $`bun publish --tag snapshot --access public`
|
||||
await $`git checkout package.json`
|
||||
}
|
||||
if (!snapshot) {
|
||||
await $`bun publish --access public`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue