Skip to content

Commit 51ee038

Browse files
committed
Handle --use-yarn in case of only bun.lockb existing
1 parent 7482db9 commit 51ee038

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/detectPackageManager.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ export const detectPackageManager = (
7777
} else if (yarnLockExists) {
7878
return "yarn"
7979
} else if (bunLockbExists) {
80-
return "bun"
80+
if (overridePackageManager === "yarn") {
81+
printNoYarnLockfileError()
82+
process.exit(1)
83+
} else {
84+
return "bun"
85+
}
8186
} else {
8287
printNoLockfilesError()
8388
process.exit(1)

0 commit comments

Comments
 (0)