Skip to content

Commit a16f8dc

Browse files
committed
chore: reset prompting for cmd
1 parent a0a06b3 commit a16f8dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/utils/prompt-command.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ const runWhenInstalled = (packages, pathForCmd, ...args) => {
4848

4949
module.exports = function promptForInstallation(packages, ...args) {
5050
const nameOfPackage = "@webpack-cli/" + packages;
51-
let packageIsInstalled = true;
52-
let pathForCmd = "../../packages/init";
53-
/* try {
51+
let packageIsInstalled = false;
52+
let pathForCmd;
53+
try {
5454
const path = require("path");
5555
const fs = require("fs");
5656
pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages);
@@ -64,7 +64,7 @@ module.exports = function promptForInstallation(packages, ...args) {
6464
packageIsInstalled = true;
6565
} catch (err) {
6666
packageIsInstalled = false;
67-
} */
67+
}
6868
if (!packageIsInstalled) {
6969
const path = require("path");
7070
const fs = require("fs");

0 commit comments

Comments
 (0)