Update src/install-pnpm/run.ts

This commit is contained in:
Ben McCann 2024-06-12 08:37:26 -07:00 committed by GitHub
parent 44def7846a
commit d5bd7e8c9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,13 +109,13 @@ function getPnpmVersionFromLockfile(
): string | undefined { ): string | undefined {
switch (true) { switch (true) {
case lockfileVersion === '5.3': case lockfileVersion === '5.3':
return '6'; return 'latest-6';
case lockfileVersion === '5.4': case lockfileVersion === '5.4':
return '7'; return 'latest-7';
case lockfileVersion === '6.0' || lockfileVersion === '6.1': case lockfileVersion === '6.0' || lockfileVersion === '6.1':
return '8'; return 'latest-8';
case lockfileVersion === '7.0' || lockfileVersion === '9.0': case lockfileVersion === '7.0' || lockfileVersion === '9.0':
return '9'; return 'latest-9';
default: default:
return undefined; return undefined;
} }