In `compileScripts`, run `base` through `path.join`.

Allows `path.join` to do some processing on the base path
that was also happening on the full path.
Fixes: `coffee -o ./ ./`
Still broken: `coffee -o . .`
This commit is contained in:
Stéphan Kochen 2010-10-19 18:36:27 +02:00
parent e5dfa19ec9
commit c458346593
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
var base, compile;
var source = _ref2[_i];
return _result.push((function() {
base = source;
base = path.join(source);
compile = function(source, topLevel) {
return path.exists(source, function(exists) {
if (!exists) {

View File

@ -74,7 +74,7 @@ exports.run = ->
# '.coffee' extension source files in it and all subdirectories.
compileScripts = ->
for source in sources
base = source
base = path.join(source)
compile = (source, topLevel) ->
path.exists source, (exists) ->
throw new Error "File not found: #{source}" unless exists