pmadruga / react-native-clean-project

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

Fix tasks typo #75

Closed dennispassway closed 2 years ago

dennispassway commented 2 years ago

I just updated and it crashes on a typo, so here's a little fix :)

beaur commented 2 years ago

Thank you and apologies for the typo in the original!

mikehardy commented 2 years ago

I used patch-package to fix it up locally, here's their auto-generated issue template in case it's useful for anyone else until @pmadruga kicks out a release

Cheers!


Today I used patch-package to patch react-native-clean-project@3.6.5 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-clean-project/source/internals/tasks.js b/node_modules/react-native-clean-project/source/internals/tasks.js
index 9da34ed..2d93714 100644
--- a/node_modules/react-native-clean-project/source/internals/tasks.js
+++ b/node_modules/react-native-clean-project/source/internals/tasks.js
@@ -91,7 +91,7 @@ const autoTasks = [
   tasks.wipeiOSPodsFolder,
   tasks.wipeSystemiOSPodsCache,
   tasks.wipeUseriOSPodsCache,
-  teask.cleanAndroidProject,
+  tasks.cleanAndroidProject,
   tasks.wipeAndroidBuildFolder,
   tasks.watchmanCacheClear,
   tasks.wipeTempCaches,

This issue body was partially generated by patch-package.

pmadruga commented 2 years ago

Thanks for this ! Fixed in 3.6.6.