Przeglądaj źródła

fix(opencode): relax bun version requirement (#9682)

Caleb Norton 3 tygodni temu
rodzic
commit
c4594c4c1f
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      packages/script/src/index.ts

+ 5 - 2
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 = {