Skip to content

Commit b292ae7

Browse files
committed
Merge pull request #711 from madbence/master
fix: Watch js, json files by default
2 parents f5d1a04 + 3480f37 commit b292ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function exec(nodemonOptions, execMap) {
7373
var options = utils.clone(nodemonOptions || {});
7474
var script = path.basename(options.script || '');
7575
var scriptExt = path.extname(script).slice(1);
76-
var extension = options.ext || scriptExt + ',json' || 'js,json';
76+
var extension = options.ext || (scriptExt ? scriptExt + ',json' : 'js,json');
7777
var execDefined = !!options.exec;
7878

7979
// allows the user to simplify cli usage:

0 commit comments

Comments
 (0)