Skip to content
This repository was archived by the owner on Jun 10, 2018. It is now read-only.

-o option doesnt work under windows #59

@TobiaszCudnik

Description

@TobiaszCudnik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions