Skip to content

Commit bf21496

Browse files
louiellanMoLow
andauthored
lib: filter modules when --watch-pattern is not passed
Co-authored-by: Moshe Atlow <[email protected]>
1 parent 46be19d commit bf21496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/main/watch_mode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function handleWatchedPath(path) {
4848
}
4949

5050
const kKillSignal = convertToValidSignal(getOptionValue('--watch-kill-signal'));
51-
const kShouldFilterModules = getOptionValue('--watch-path').length === 0;
51+
const kShouldFilterModules = getOptionValue('--watch-pattern').length === 0;
5252
const kEnvFile = getOptionValue('--env-file') || getOptionValue('--env-file-if-exists');
5353
const kWatchedPaths = ArrayPrototypeFlatMap(getOptionValue('--watch-path'), (path) => handleWatchedPath(path));
5454
const kPreserveOutput = getOptionValue('--watch-preserve-output');

0 commit comments

Comments
 (0)