From 0565a4fc0ab12102206331c8d8896b6ef4624ff9 Mon Sep 17 00:00:00 2001 From: Sayak Mukhopadhyay Date: Tue, 17 Jan 2023 14:48:43 +0530 Subject: [PATCH] feat: remove package manager name check as it will be done by corepack anyway --- src/installer.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/installer.ts b/src/installer.ts index 79bd2af5..49c3575e 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -611,11 +611,6 @@ export async function enableCorepack(input: string): Promise { 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, {