blob: dde346400a8f00d0f10bbb8a07a9d683130f9dfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Relax @opencode-ai/script's bun version assertion.
Upstream pins packageManager to bun@1.3.13 in the root package.json, and
packages/script/src/index.ts asserts that the running bun is in the
^1.3.13 range. extra/bun on Arch Linux is currently 1.3.11; the build
itself does not require any 1.3.13-specific feature, so demote the hard
abort to a console warning to allow the AUR build to proceed.
--- a/packages/script/src/index.ts
+++ b/packages/script/src/index.ts
@@ -14,7 +14,7 @@
const expectedBunVersionRange = `^${expectedBunVersion}`
if (!semver.satisfies(process.versions.bun, expectedBunVersionRange)) {
- throw new Error(`This script requires bun@${expectedBunVersionRange}, but you are using bun@${process.versions.bun}`)
+ console.warn(`Warning: this script wants bun@${expectedBunVersionRange}, you are using bun@${process.versions.bun} (allowed by AUR PKGBUILD).`)
}
const env = {
|