mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user