-
Notifications
You must be signed in to change notification settings - Fork 47
CLI ignores src/ directory and creates files at project root #37
Copy link
Copy link
Open
Description
I’m using an Expo project with a src/ folder, but the BNA UI CLI always creates component folders at the project root.
Structure:
src/
app/
components/
hooks/
theme/
Running:
pnpm dlx bna-ui add button
Creates:
components/ui/button.tsx
instead of:
src/components/ui/button.tsx
tsconfig setup
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@app/*": ["./src/app/*"],
"@components/*": ["./src/components/*"],
"@hooks/*": ["./src/hooks/*"],
"@constants/*": ["./src/constants/*"]
}
},
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"]
}
Expected
CLI should detect src/ usage or support a flag like:
bna-ui add button --root src
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels