Skip to content

Commit

Permalink
Merge pull request #711 from madbence/master
Browse files Browse the repository at this point in the history
fix: Watch js, json files by default
  • Loading branch information
remy committed Nov 2, 2015
2 parents f5d1a04 + 3480f37 commit b292ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/exec.js
Expand Up @@ -73,7 +73,7 @@ function exec(nodemonOptions, execMap) {
var options = utils.clone(nodemonOptions || {});
var script = path.basename(options.script || '');
var scriptExt = path.extname(script).slice(1);
var extension = options.ext || scriptExt + ',json' || 'js,json';
var extension = options.ext || (scriptExt ? scriptExt + ',json' : 'js,json');
var execDefined = !!options.exec;

// allows the user to simplify cli usage:
Expand Down

0 comments on commit b292ae7

Please sign in to comment.