Skip to content

Commit

Permalink
chore: reset prompting for cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Jun 7, 2019
1 parent a0a06b3 commit a16f8dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/utils/prompt-command.js
Expand Up @@ -48,9 +48,9 @@ const runWhenInstalled = (packages, pathForCmd, ...args) => {

module.exports = function promptForInstallation(packages, ...args) {
const nameOfPackage = "@webpack-cli/" + packages;
let packageIsInstalled = true;
let pathForCmd = "../../packages/init";
/* try {
let packageIsInstalled = false;
let pathForCmd;
try {
const path = require("path");
const fs = require("fs");
pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages);
Expand All @@ -64,7 +64,7 @@ module.exports = function promptForInstallation(packages, ...args) {
packageIsInstalled = true;
} catch (err) {
packageIsInstalled = false;
} */
}
if (!packageIsInstalled) {
const path = require("path");
const fs = require("fs");
Expand Down

0 comments on commit a16f8dc

Please sign in to comment.