From e7dfef4df5605d4f8345f7fa23542366c0bab624 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 15 Oct 2025 02:52:28 -0400 Subject: [PATCH] core: add bun fallback for install scripts to ensure compatibility across environments --- packages/opencode/script/publish.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index 3bdf6a49d..7834f421d 100755 --- a/packages/opencode/script/publish.ts +++ b/packages/opencode/script/publish.ts @@ -25,8 +25,8 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write( [pkg.name]: `./bin/${pkg.name}`, }, scripts: { - preinstall: "node ./preinstall.mjs", - postinstall: "node ./postinstall.mjs", + preinstall: "bun ./preinstall.mjs || node ./preinstall.mjs", + postinstall: "bun ./postinstall.mjs || node ./postinstall.mjs", }, version: Script.version, optionalDependencies: binaries,