diff --git a/lib/command.js b/lib/command.js index b99c9dd089..c5e6bb2a14 100644 --- a/lib/command.js +++ b/lib/command.js @@ -83,7 +83,7 @@ return compileScript(source, code.toString(), base); } }); - if (opts.watch) { + if (opts.watch && !opts.join) { return watch(source, base); } } diff --git a/src/command.coffee b/src/command.coffee index 6913186789..cade09bdde 100644 --- a/src/command.coffee +++ b/src/command.coffee @@ -89,7 +89,7 @@ compileScripts = -> compileJoin() if helpers.compact(contents).length is sources.length else compileScript(source, code.toString(), base) - watch source, base if opts.watch + watch source, base if opts.watch and not opts.join compile source, true # Compile a single source script, containing the given code, according to the