Skip to content

Commit

Permalink
fix: remove extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored and alexander-akait committed Jun 4, 2023
1 parent 3f2a57a commit 1500796
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,15 +566,12 @@ class WebpackCLI implements IWebpackCLI {
let skipInstallation = false;

// Allow to use `./path/to/webpack.js` outside `node_modules`
if (dependency === WEBPACK_PACKAGE && fs.existsSync(WEBPACK_PACKAGE)) {
if (dependency === WEBPACK_PACKAGE) {
skipInstallation = true;
}

// Allow to use `./path/to/webpack-dev-server.js` outside `node_modules`
if (
dependency === WEBPACK_DEV_SERVER_PACKAGE &&
fs.existsSync(WEBPACK_DEV_SERVER_PACKAGE)
) {
if (dependency === WEBPACK_DEV_SERVER_PACKAGE) {
skipInstallation = true;
}

Expand Down

0 comments on commit 1500796

Please sign in to comment.