Skip to content

Commit c637717

Browse files
committed
fix: expose no update flag
1 parent f711537 commit c637717

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/cli/options.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Configuration
77
--signal <signal> ........ use specified kill signal instead of default (ex. SIGTERM)
88
-w, --watch dir........... watch directory "dir" or files. use once for each
99
directory or file to watch
10+
--no-update-notifier ..... opt-out of update version check
1011

1112
Execution
1213
-C, --on-change-only ..... execute script on change only, not startup

lib/config/load.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,13 @@ function loadPackageJSON(config, ready) {
220220
ready = function () { };
221221
}
222222

223-
utils.log.detail('Looking in package.json for nodemonConfig');
224-
225223
var dir = process.cwd();
226224
var filename = path.join(dir, 'package.json');
227225
var packageLoadOptions = { configFile: filename };
228226
return loadFile(packageLoadOptions, config, dir, function (settings) {
227+
if (settings.nodemonConfig) {
228+
utils.log.detail('using config in package.json');
229+
}
229230
ready(settings.nodemonConfig || {});
230231
});
231232
}

0 commit comments

Comments
 (0)