Explorar o código

fix(node): set OPENCODE_CHANNEL during build (#20616)

Brendan Allan hai 4 meses
pai
achega
0f488996b3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/opencode/script/build-node.ts

+ 2 - 0
packages/opencode/script/build-node.ts

@@ -1,5 +1,6 @@
 #!/usr/bin/env bun
 
+import { Script } from "@opencode-ai/script"
 import fs from "fs"
 import path from "path"
 import { fileURLToPath } from "url"
@@ -48,6 +49,7 @@ await Bun.build({
   external: ["jsonc-parser"],
   define: {
     OPENCODE_MIGRATIONS: JSON.stringify(migrations),
+    OPENCODE_CHANNEL: `'${Script.channel}'`,
   },
 })