Skip to content

Commit

Permalink
feat: install init as global dep
Browse files Browse the repository at this point in the history
  • Loading branch information
manu-chroma committed Oct 7, 2018
1 parent 54c04f0 commit c42a8e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/prompt-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ module.exports = function promptForInstallation(packages, ...args) {
options[0] = "add";
}

if (packages === "init") {
options[1] = "-g";
}

const commandToBeRun = `${packageManager} ${options.join(" ")}`;

const question = `Would you like to install ${packages}? (That will run ${commandToBeRun}) (yes/NO)`;
Expand Down

0 comments on commit c42a8e7

Please sign in to comment.