mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-20 21:00:29 +08:00
10 lines
310 B
TypeScript
Executable File
10 lines
310 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
import { Script } from "@opencode-ai/script"
|
|
|
|
await import("./prebuild")
|
|
|
|
const pkg = await Bun.file("./package.json").json()
|
|
pkg.version = Script.version
|
|
await Bun.write("./package.json", JSON.stringify(pkg, null, 2) + "\n")
|
|
console.log(`Updated package.json version to ${Script.version}`)
|