Skip to content

Commit

Permalink
fix: expose no update flag
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 29, 2017
1 parent f711537 commit c637717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/cli/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Configuration
--signal <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
Expand Down
5 changes: 3 additions & 2 deletions lib/config/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {});
});
}

0 comments on commit c637717

Please sign in to comment.