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

pull/20963/head^2
Brendan Allan 2026-04-02 14:05:36 +08:00 committed by GitHub
parent a6f524ca08
commit 0f488996b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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