mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-18 23:52:42 +00:00
fix(opencode): relax bun version requirement (#9682)
This commit is contained in:
parent
eea70be21a
commit
c4594c4c1f
1 changed files with 5 additions and 2 deletions
|
|
@ -10,8 +10,11 @@ if (!expectedBunVersion) {
|
|||
throw new Error("packageManager field not found in root package.json")
|
||||
}
|
||||
|
||||
if (!satisfies(process.versions.bun, expectedBunVersion)) {
|
||||
throw new Error(`This script requires bun@${expectedBunVersion}, but you are using bun@${process.versions.bun}`)
|
||||
// relax version requirement
|
||||
const expectedBunVersionRange = `^${expectedBunVersion}`
|
||||
|
||||
if (!satisfies(process.versions.bun, expectedBunVersionRange)) {
|
||||
throw new Error(`This script requires bun@${expectedBunVersionRange}, but you are using bun@${process.versions.bun}`)
|
||||
}
|
||||
|
||||
const env = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue