mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 11:26:39 +00:00
12 lines
278 B
TypeScript
Executable File
12 lines
278 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
|
|
import { $ } from "bun"
|
|
|
|
const dir = new URL("..", import.meta.url).pathname
|
|
const version = process.env["VERSION"]
|
|
if (!version) throw new Error("VERSION is required")
|
|
|
|
await $`bun pm pkg set version="${version}"`
|
|
await $`tsc`.cwd(dir)
|
|
await $`bun publish`
|