react-native-reusables
react-native-reusables copied to clipboard
[ BUG ] CLI components paths
Describe the bug
When setting the paths for components and lib, the default is to use ~/components and ~/lib. The problem is that when you use those paths, it creates a folder ~ in the working directory and imports the files under that path. This is confusing because the ~ is hidden and further more, it is extremely dangerous when you go to delete it, you might accidentally delete your home directory: rm -rf ~ vs. rm -rf ./~.
To Reproduce Steps to reproduce the behavior:
- Open terminal on macOS
- Run
npx @react-native-reusables/cli@latest add - Keep default paths
Expected behavior
Should have added to the components folder in the working directory, not create a folder ~ and copy the files there.
Platform (please complete the following information):
- Type: Terminal
- OS: macOS 14.5
still not fixed? very annoying bug
Fixed with latest CLI update https://reactnativereusables.com/docs/cli