Skip to content

Commit

Permalink
fix: langauge around "watching" (#1591)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
remy authored Sep 3, 2019
1 parent 2e6e2c4 commit 12b66cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/nodemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,16 @@ function nodemon(settings) {
}).filter(Boolean).join(' ');
if (ignoring) utils.log.detail('ignoring: ' + ignoring);

utils.log.info('watching: ' + config.options.monitor.map(function (rule) {
return rule.slice(0, 1) !== '!' ? rule : false;
utils.log.info('watching dir(s): ' + config.options.monitor.map(function (rule) {
if (rule.slice(0, 1) !== '!') {
try {
rule = path.relative(process.cwd(), rule);
} catch (e) {}

return rule;
}

return false;
}).filter(Boolean).join(' '));

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

0 comments on commit 12b66cd

Please sign in to comment.