Use includes

This commit is contained in:
Fedor Korotkov 2024-08-23 15:57:21 -04:00 committed by GitHub
parent 9ea357d1dc
commit 37c5a43eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ async function readTarget(opts: {
if (version) {
if (
typeof packageManager === 'string' && packageManager.contains("pnpm@") &&
typeof packageManager === 'string' && packageManager.includes("pnpm@") &&
packageManager.replace('pnpm@', '') !== version
) {
throw new Error(`Multiple versions of pnpm specified: