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:
parent
e5dfa19ec9
commit
c458346593
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue