mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
core: add version export to installation module
This commit is contained in:
parent
d0abae3215
commit
0ea4a769de
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ export namespace Installation {
|
|||
throw new UpgradeFailedError({
|
||||
stderr: result.stderr.toString("utf8"),
|
||||
})
|
||||
await $`${process.execPath} --version`.nothrow().quiet().text()
|
||||
}
|
||||
|
||||
export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue