siddharthkp / auto-install

Install dependencies as you code ⚡️
MIT License
1.2k stars 71 forks source link

Can't parse should not imply removing package #88

Open gabrielstuff opened 6 years ago

gabrielstuff commented 6 years ago

Hi and thank you for this little tool. I was trying it and encounter an issue with the following message : Could not parse src/app.js. There is a syntax error in file

It's a bit weird that just after throwing this error, auto-install removes all depedencies in the package.json.

I was not expecting that.

Thanks

siddharthkp commented 6 years ago

That sounds terrible!

This can be solved by keeping a map of dependencies and files. My naive approach flattens that right now.

Would you like to submit a pull request?