Skip to content

Commit 0f48899

Browse files
authored
fix(node): set OPENCODE_CHANNEL during build (#20616)
1 parent a6f524c commit 0f48899

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/opencode/script/build-node.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bun
22

3+
import { Script } from "@opencode-ai/script"
34
import fs from "fs"
45
import path from "path"
56
import { fileURLToPath } from "url"
@@ -48,6 +49,7 @@ await Bun.build({
4849
external: ["jsonc-parser"],
4950
define: {
5051
OPENCODE_MIGRATIONS: JSON.stringify(migrations),
52+
OPENCODE_CHANNEL: `'${Script.channel}'`,
5153
},
5254
})
5355

0 commit comments

Comments
 (0)