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

[ FEATURE ] Custom output path for CLI #268

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

[ FEATURE ] Custom output path for CLI #268

leifdejong opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@leifdejong
Copy link

Is your feature request related to a problem? Please describe.
As a developer, I want to be able to control which folder the components are copied to.
Currently, you are bound to the ui folder after the path declaration in components.json.

Describe the solution you'd like
I want the ability to just set a custom folder name like ./src/components.
Then the components will be copied directly to ./src/components/alert-dialog.tsx for example.
I also want the ability to set what the import path should be, ~/components for example

Describe alternatives you've considered
Using the cli then moving the files to the appropriate folder and updating the import paths.

Additional context
Would be nice to have both options as to where it's copied and what the path prefix will be.

Example modification of components.json:

{
"aliases": {
    "components": "~/components",
    "lib": "~/lib"
  },
  "paths": {
    "components": "./src/components",
    "lib": "./src/lib"
  }
}
@leifdejong leifdejong added the enhancement New feature or request label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant