Explorar el Código

core: add version export to installation module

Dax Raad hace 3 meses
padre
commit
0ea4a769de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/opencode/src/installation/index.ts

+ 1 - 0
packages/opencode/src/installation/index.ts

@@ -158,6 +158,7 @@ export namespace Installation {
       throw new UpgradeFailedError({
       throw new UpgradeFailedError({
         stderr: result.stderr.toString("utf8"),
         stderr: result.stderr.toString("utf8"),
       })
       })
+    await $`${process.execPath} --version`.nothrow().quiet().text()
   }
   }
 
 
   export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"
   export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"