From 5f70d88349ac0de5802fe361af3e22fd020d3219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20APLAK?= Date: Fri, 18 Nov 2022 16:03:39 +0300 Subject: [PATCH] fix: update pm hint messages --- package.json | 2 +- src/Helper/npm/index.ts | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4345f940..bf5c18ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superplate-cli", - "version": "1.9.4", + "version": "1.9.5", "description": "The frontend boilerplate with superpowers", "license": "MIT", "repository": { diff --git a/src/Helper/npm/index.ts b/src/Helper/npm/index.ts index 8840aa21..e48d1098 100644 --- a/src/Helper/npm/index.ts +++ b/src/Helper/npm/index.ts @@ -4,11 +4,21 @@ export const get_potential_package_managers = (): Array<{ message: string; name: string; }> => { - const pmQuestionChoises = [{ message: "Npm", name: "npm" }]; + const pmQuestionChoises = [ + { + message: "Npm", + name: "npm", + hint: "Dependencies will be installed via npm ", + }, + ]; const canUseYarn = BinaryHelper.CanUseYarn(); const canUsePnpm = BinaryHelper.CanUsePnpm(); if (canUseYarn) { - pmQuestionChoises.push({ message: "Yarn", name: "yarn" }); + pmQuestionChoises.push({ + message: "Yarn", + name: "yarn", + hint: "Dependencies will be installed via yarn", + }); } if (canUsePnpm) { @@ -22,6 +32,7 @@ export const get_potential_package_managers = (): Array<{ ) .join(""), name: "pnpm", + hint: "Dependencies will be installed via pnpm", }); }