SaraVieira / preact-cli-plugin-flow

Use flow with the Preact CLI
MIT License
17 stars 4 forks source link

Plugin removes Preact from node_modules #3

Closed binury closed 3 years ago

binury commented 7 years ago

Adding preact-cli-plugin-flow on a fresh installation of Preact causes the folder to be deleted.

binury commented 7 years ago

Just guessing/intuition but I'd wager the post-installation scripts are configured assuming the installation is done with NPM which causes a conflict for users who have opted into using the --yarn flag.

binury commented 7 years ago

Modifying preact-cli-plugin-flow/bin/index.js to test for the existence of yarn.lock could then allow the post installation to complete using the user's chosen package manager and prevent npm from breaking the depedencies

SaraVieira commented 7 years ago

Hi @teddy-error,

So sorry about the issue 😕

I will get on this today! It is probably what you are saying

Thank you for pointing it out!

moebiusmania commented 6 years ago

hi, unfortunately this is still happening