From e07ea8e767909c542d01a86b9475d7edf1d715f0 Mon Sep 17 00:00:00 2001 From: GenMusic <98533777+GenMusic@users.noreply.github.com> Date: Thu, 4 May 2023 09:19:48 +0100 Subject: [PATCH] Update const packageManagerPat and remove console log --- helpers/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpers/index.ts b/helpers/index.ts index b677392..d2a7da0 100644 --- a/helpers/index.ts +++ b/helpers/index.ts @@ -18,7 +18,7 @@ export async function getPackageManager(options: { } else { for (const pm of ["yarn", "pnpm", "npm"]) { try { - const packageManagerPath = which.sync(pm); + const packageManagerPath = path.basename(which.sync(pm)); return packageManagerPath; } catch (error) { // Ignore the error and try the next package manager @@ -40,7 +40,6 @@ export function downloadTemplate( console.error("Git command output:", stderr); reject(error); } else { - console.log("Git command output:", stdout); resolve(true); } });