guard-coffeescript 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,7 +133,7 @@ module Guard
133
133
 
134
134
  watchers.product(files).each do |watcher, file|
135
135
  if matches = file.match(watcher.pattern)
136
- target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output] || '.'
136
+ target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output] || File.dirname(file)
137
137
  if directories[target]
138
138
  directories[target] << file
139
139
  else