pmadruga / react-native-clean-project

Automating the clean up of a React Native project
MIT License
1.17k stars 52 forks source link

Doesn't work for Windows #24

Closed xliank closed 4 years ago

xliank commented 4 years ago

rm Commands only work for MacOS & Linux. Thanks

Untitled

pmadruga commented 4 years ago

Thanks for raising the issue. I currently don't own a windows machine to test this, so I'm welcoming all PR's on this. 👍

yfunk commented 3 years ago

This is still an issue for me on my windows machine. Did anyone find a fix or workaround?

From my very brief research it seems child_process, which executeTask() uses, works with cmd on windows, where rm isn't a valid command (although it is in powershell). So the solution for this would probably be to check for the environment and run a different command on windows machines or somehow use powershell to execute the commands instead.

KrisLau commented 2 years ago

Problem still occurs on windows