react-native-reusables icon indicating copy to clipboard operation
react-native-reusables copied to clipboard

[ BUG ] CLI components paths

Open 0xMachan opened this issue 1 year ago • 1 comments

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:

  1. Open terminal on macOS
  2. Run npx @react-native-reusables/cli@latest add
  3. 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

0xMachan avatar Oct 31 '24 15:10 0xMachan

still not fixed? very annoying bug

uhakdt avatar Mar 11 '25 12:03 uhakdt

Fixed with latest CLI update https://reactnativereusables.com/docs/cli

mrzachnugent avatar Aug 22 '25 17:08 mrzachnugent