From c63771726c6105f8dc26a1715ce0b02e5b2f524e Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 28 Dec 2017 19:36:12 +0000 Subject: [PATCH] fix: expose no update flag --- doc/cli/options.txt | 1 + lib/config/load.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 || {}); }); }