diff --git a/doc/cli/options.txt b/doc/cli/options.txt index 7d28440e..ab6561ac 100644 --- a/doc/cli/options.txt +++ b/doc/cli/options.txt @@ -7,6 +7,7 @@ Configuration --signal ........ use specified kill signal instead of default (ex. SIGTERM) -w, --watch dir........... watch directory "dir" or files. use once for each directory or file to watch + --no-update-notifier ..... opt-out of update version check Execution -C, --on-change-only ..... execute script on change only, not startup diff --git a/lib/config/load.js b/lib/config/load.js index 06ec8019..ca4dd3c9 100644 --- a/lib/config/load.js +++ b/lib/config/load.js @@ -220,12 +220,13 @@ function loadPackageJSON(config, ready) { ready = function () { }; } - utils.log.detail('Looking in package.json for nodemonConfig'); - var dir = process.cwd(); var filename = path.join(dir, 'package.json'); var packageLoadOptions = { configFile: filename }; return loadFile(packageLoadOptions, config, dir, function (settings) { + if (settings.nodemonConfig) { + utils.log.detail('using config in package.json'); + } ready(settings.nodemonConfig || {}); }); }