Merge branch 'bugfix-1157' of https://github.com/thejh/coffee-script into stable

This commit is contained in:
Jeremy Ashkenas
2011-04-09 16:11:21 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@
fs.readFile(source, function(err, code) {
if (opts.join) {
contents[sources.indexOf(source)] = code.toString();
if (helpers.compact(contents).length === sources.length) {
if (helpers.compact(contents).length > 0) {
return compileJoin();
}
} else {

View File

@@ -86,7 +86,7 @@ compileScripts = ->
fs.readFile source, (err, code) ->
if opts.join
contents[sources.indexOf source] = code.toString()
compileJoin() if helpers.compact(contents).length is sources.length
compileJoin() if helpers.compact(contents).length > 0
else
compileScript(source, code.toString(), base)
watch source, base if opts.watch and not opts.join