Skip to content

Commit

Permalink
fix(internals): support all yarn versions in isYarnUsed (#18982)
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Apr 28, 2023
1 parent a08abea commit ab1b09f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { detect } from '@prisma/ni'

export async function isYarnUsed(baseDir: string): Promise<boolean> {
const packageManager = await detect({ cwd: baseDir, autoInstall: false })
return packageManager === 'yarn'
return packageManager === 'yarn' || packageManager === 'yarn@berry'
}

0 comments on commit ab1b09f

Please sign in to comment.