Skip to content

Commit

Permalink
fix: remove extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 10, 2023
1 parent 192c119 commit 24f43fd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/webpack-cli/src/webpack-cli.ts
Expand Up @@ -521,15 +521,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) {

Check warning on line 529 in packages/webpack-cli/src/webpack-cli.ts

View check run for this annotation

Codecov / codecov/patch

packages/webpack-cli/src/webpack-cli.ts#L529

Added line #L529 was not covered by tests
skipInstallation = true;
}

Expand Down

0 comments on commit 24f43fd

Please sign in to comment.