giuseppeg / xm

₪ extensible HTML
https://giuseppeg.github.io/xm
326 stars 9 forks source link

When using custom root, dev throws error because `.xm` folder doesn't exist #5

Closed suchipi closed 4 years ago

suchipi commented 4 years ago

Using xm 1.0.3, when running:

xm dev --root ./src

I get the following error:

> xm dev --root ./src

  ₪ xm  extensible static HTML

fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, rmdir 'src/.xm'
    at Object.rmdirSync (fs.js:684:3)
    at Object.<anonymous> (/Users/lily/[redacted]/node_modules/xm/index.js:78:4)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)