fix(node): set OPENCODE_CHANNEL during build (#20616)
This commit is contained in:
parent
a6f524ca08
commit
0f488996b3
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
|
|
||||||
|
import { Script } from "@opencode-ai/script"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { fileURLToPath } from "url"
|
import { fileURLToPath } from "url"
|
||||||
|
|
@ -48,6 +49,7 @@ await Bun.build({
|
||||||
external: ["jsonc-parser"],
|
external: ["jsonc-parser"],
|
||||||
define: {
|
define: {
|
||||||
OPENCODE_MIGRATIONS: JSON.stringify(migrations),
|
OPENCODE_MIGRATIONS: JSON.stringify(migrations),
|
||||||
|
OPENCODE_CHANNEL: `'${Script.channel}'`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue