We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea70be commit c4594c4Copy full SHA for c4594c4
packages/script/src/index.ts
@@ -10,8 +10,11 @@ if (!expectedBunVersion) {
10
throw new Error("packageManager field not found in root package.json")
11
}
12
13
-if (!satisfies(process.versions.bun, expectedBunVersion)) {
14
- throw new Error(`This script requires bun@${expectedBunVersion}, but you are using bun@${process.versions.bun}`)
+// relax version requirement
+const expectedBunVersionRange = `^${expectedBunVersion}`
15
+
16
+if (!satisfies(process.versions.bun, expectedBunVersionRange)) {
17
+ throw new Error(`This script requires bun@${expectedBunVersionRange}, but you are using bun@${process.versions.bun}`)
18
19
20
const env = {
0 commit comments