Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BUG ] CLI components paths #267

Open
leifdejong opened this issue Oct 31, 2024 · 0 comments
Open

[ BUG ] CLI components paths #267

leifdejong opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@leifdejong
Copy link

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
@leifdejong leifdejong added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant