sstephenson / eco

Embedded CoffeeScript templates
MIT License
1.71k stars 68 forks source link

-o option doesnt work under windows #59

Open TobiaszCudnik opened 11 years ago

TobiaszCudnik commented 11 years ago

The following command fails:

node ..\..\..\node_modules\eco\bin\eco ^
    -i views ^
    -o ..\build\views ^
    ..\views\listing.eco

with following error

C:\[...]\node_modules\eco\lib\command.js:215
          if (err) throw err;
                         ^
Error: Command failed: A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file ..\\build\\views already exists.
Error occurred while processing: ..\\build\\views.

    at ChildProcess.exithandler (child_process.js:536:15)
    at ChildProcess.EventEmitter.emit (events.js:91:17)
    at maybeClose (child_process.js:634:16)
    at Process._handle.onexit (child_process.js:676:5)

When using -p it outputs JS code correctly. Windows XP.