mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
core: add bun fallback for install scripts to ensure compatibility across environments
This commit is contained in:
parent
129fdea05c
commit
e7dfef4df5
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue