We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d6fe66 commit 650cf7dCopy full SHA for 650cf7d
1 file changed
packages/opencode/script/build.ts
@@ -192,12 +192,8 @@ for (const item of targets) {
192
await $`rm -rf ./dist/${name}/bin/tui`
193
await $`cp ./bin/opencode ./dist/${name}/bin/opencode`
194
195
- // For baseline builds, also create a Node.js-compatible bundle
196
- if (item.avx2 === false) {
197
- const nodeOutfile = `./dist/${name}/bin/opencode-node.js`
198
- await $`bun build ./src/index.ts --target=node --outfile=${nodeOutfile} --format=cjs`
199
- await $`chmod +x ${nodeOutfile}`
200
- }
+ // Note: Node.js fallback for baseline builds skipped - bun build --target=node doesn't support top-level await
+ // The launcher will try to use the Bun binary which may not work on older CPUs
201
await Bun.file(`dist/${name}/package.json`).write(
202
JSON.stringify(
203
{
0 commit comments