diff options
| author | Caleb Norton <[email protected]> | 2026-01-20 14:57:19 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-20 14:57:19 -0600 |
| commit | c4594c4c1ff82fbac4f5da1ca34bc4786fab4430 (patch) | |
| tree | 6dc5c3d912d20836b6c722c53a8a1f734f550da2 /packages/script/src | |
| parent | eea70be21a0984b205559cc6f7586930c6755440 (diff) | |
| download | opencode-c4594c4c1ff82fbac4f5da1ca34bc4786fab4430.tar.gz opencode-c4594c4c1ff82fbac4f5da1ca34bc4786fab4430.zip | |
fix(opencode): relax bun version requirement (#9682)
Diffstat (limited to 'packages/script/src')
| -rw-r--r-- | packages/script/src/index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/script/src/index.ts b/packages/script/src/index.ts index 9d3c6821c..141b3b192 100644 --- a/packages/script/src/index.ts +++ b/packages/script/src/index.ts @@ -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 = { |
