mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
@@ -137,7 +137,7 @@ function normaliseRules(options, ready) {
|
||||
rules.ignore.add(options.ignore);
|
||||
|
||||
// normalise the watch and ignore arrays
|
||||
options.watch = rules.rules.watch;
|
||||
options.watch = options.watch === false ? false : rules.rules.watch;
|
||||
options.ignore = rules.rules.ignore;
|
||||
|
||||
ready(options);
|
||||
|
||||
@@ -237,8 +237,10 @@ function run(options) {
|
||||
});
|
||||
}
|
||||
|
||||
debug('about to watch');
|
||||
watch();
|
||||
debug('start watch on: %s', config.options.watch);
|
||||
if (config.options.watch !== false) {
|
||||
watch();
|
||||
}
|
||||
}
|
||||
|
||||
function kill(child, signal, callback) {
|
||||
|
||||
Reference in New Issue
Block a user