Skip to content

Commit 12b66cd

Browse files
authored
fix: langauge around "watching" (#1591)
ref: #1583 It was unclear whether it was listing files being watched when in fact it was the list of directories (plus, make it cleaner)
1 parent 2e6e2c4 commit 12b66cd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/nodemon.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,16 @@ function nodemon(settings) {
180180
}).filter(Boolean).join(' ');
181181
if (ignoring) utils.log.detail('ignoring: ' + ignoring);
182182

183-
utils.log.info('watching: ' + config.options.monitor.map(function (rule) {
184-
return rule.slice(0, 1) !== '!' ? rule : false;
183+
utils.log.info('watching dir(s): ' + config.options.monitor.map(function (rule) {
184+
if (rule.slice(0, 1) !== '!') {
185+
try {
186+
rule = path.relative(process.cwd(), rule);
187+
} catch (e) {}
188+
189+
return rule;
190+
}
191+
192+
return false;
185193
}).filter(Boolean).join(' '));
186194

187195
utils.log.detail('watching extensions: ' + (config.options.execOptions.ext || '(all)'));

0 commit comments

Comments
 (0)