radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
4.31k stars 250 forks source link

[Bug]: `drawer` component does not respect `typescript: false` in `components.json` #732

Open gigabites19 opened 2 weeks ago

gigabites19 commented 2 weeks ago

Reproduction

https://stackblitz.com/edit/vitejs-vite-zrsheh

Describe the bug

When you run npx shadcn-vue@latest add drawer and you have typescript: false in your components.json, following drawer-related components still use typescript:

In the reproduction run npx shadcn-vue@latest add drawer and inspect components above, they will be using ts

System Info

System:
    OS: Linux 6.1 Manjaro Linux
    CPU: (8) x64 AMD Ryzen 5 1400 Quad-Core Processor
    Memory: 9.40 GB / 15.53 GB
    Container: Yes
    Shell: 5.2.32 - /bin/bash
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm

Contributes

gigabites19 commented 2 weeks ago

I also want to say, thank you @zernonia @sadeghbarati and others for this project, I find it super useful and of course, beautiful.