From 72b3c642ab847c94640ba27917fb9bc5966c982d Mon Sep 17 00:00:00 2001 From: Raul Catalinas <105791463+RaulCatalinas@users.noreply.github.com> Date: Fri, 3 May 2024 21:00:32 +0200 Subject: [PATCH] refactor: removed Yarn option from package manager selection - The 'Yarn' option has been removed until its configuration is added. --- src/utils/package-managers.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/package-managers.ts b/src/utils/package-managers.ts index 994deaf..69883da 100644 --- a/src/utils/package-managers.ts +++ b/src/utils/package-managers.ts @@ -15,7 +15,9 @@ export async function getPackageManger(): Promise { try { const { packageManager } = await inquirer.prompt({ type: 'rawlist', - choices: PACKAGE_MANGERS, + choices: PACKAGE_MANGERS.filter( + packageManager => packageManager !== 'yarn' + ), message: 'Which package manager do you wanna use?', name: 'packageManager' }) @@ -26,3 +28,5 @@ export async function getPackageManger(): Promise { process.exit(1) } } + +await getPackageManger()