feat: remove package manager name check as it will be done by corepack anyway

This commit is contained in:
Sayak Mukhopadhyay 2023-01-17 14:48:43 +05:30
parent c7d2f5b707
commit 0565a4fc0a
No known key found for this signature in database
GPG key ID: 89EEFF3FB23D3FFD

View file

@ -611,11 +611,6 @@ export async function enableCorepack(input: string): Promise<void> {
if (input.length > 0 && input !== 'false') {
if (input !== 'true') {
const packageManagers = input.split(' ');
if (!packageManagers.every(pm => ['npm', 'yarn', 'pnpm'].includes(pm))) {
throw new Error(
`One or more of the specified package managers [ ${input} ] are not supported by corepack`
);
}
corepackArgs.push(...packageManagers);
}
await exec.getExecOutput('corepack', corepackArgs, {