viewstools / yarn-workspaces-cra-crna

How to use yarn workspaces with Create React App and Create React Native App (Expo) to share common code across
151 stars 23 forks source link

Use fs-extra to remove the existing link/folder #4

Closed nicolas-amabile closed 6 years ago

nicolas-amabile commented 6 years ago

unlinkSync only works with links, but I got to a point where I had the module folder there. Since fs.rmdir only works with an empty folder, fs-extra seems to be the right tool for the job. I hope this helps! 🎉 Any comment is welcome 😁

dariocravero commented 6 years ago

Thanks! Released as v1.0.1