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

This commit is contained in:
Brendan Allan
2026-04-02 14:05:36 +08:00
committed by GitHub
parent a6f524ca08
commit 0f488996b3

View File

@@ -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}'`,
},
})