remorses / vitro

Build and showcase your react components in isolation
https://vitro.now.sh
398 stars 12 forks source link

`vitro init` doesn't copy template #1

Closed anteprimorac closed 4 years ago

anteprimorac commented 4 years ago

Hi @remorses, first of all, thank you for this app.

I tried to use vitro by installing it globally, but vitro init doesn't copy the template folder because of this line: https://github.com/remorses/vitro/blob/9217c8141154acf02a08c874260c8c34184c9d59/packages/cli/src/init.ts#L54 because when installed the template folder path looks like this /usr/local/lib/node_modules/@vitro/cli/template.

remorses commented 4 years ago

I changed that line, you can try now

It was working for me because i was using yarn link

anteprimorac commented 4 years ago

Excellent work it fixed the issue. Thank you.