Skip to content

Commit

Permalink
pm question fix #260
Browse files Browse the repository at this point in the history
  • Loading branch information
omeraplak committed Jul 16, 2021
1 parent 64d068c commit 42151da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2.0",
"version": "1.2.1",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions src/saofile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ const saoConfig: GeneratorConfig = {
/**
* Package Manager
*/

sao.answers = {
...sao.answers,
pm: BinaryHelper.CanUseYarn() ? sao.answers.pm : "npm",

This comment has been minimized.

Copy link
@aykutkardas

aykutkardas Jul 17, 2021

Contributor

Why not just assign value? @omeraplak

// Like this
sao.answers.pm = BinaryHelper.CanUseYarn() ? sao.answers.pm : "npm";

This comment has been minimized.

Copy link
@omeraplak

omeraplak Aug 6, 2021

Author Contributor

Hi @aykutkardas ,
Yes, you are right. I updated as you suggested. Thanks for your attention! 🚀

};

const pmRun = sao.answers.pm === "yarn" ? "yarn" : "npm run";

/**
Expand Down

0 comments on commit 42151da

Please sign in to comment.