Skip to content

Commit

Permalink
fix: update pm hint messages
Browse files Browse the repository at this point in the history
  • Loading branch information
omeraplak committed Nov 18, 2022
1 parent 2d3546d commit 5f70d88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superplate-cli",
"version": "1.9.4",
"version": "1.9.5",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
15 changes: 13 additions & 2 deletions src/Helper/npm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -22,6 +32,7 @@ export const get_potential_package_managers = (): Array<{
)
.join(""),
name: "pnpm",
hint: "Dependencies will be installed via pnpm",
});
}

Expand Down

0 comments on commit 5f70d88

Please sign in to comment.