Skip to content

CLI ignores src/ directory and creates files at project root #37

@3shaan

Description

@3shaan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions