huntabyte / shadcn-svelte

shadcn/ui, but for Svelte. ✨
https://shadcn-svelte.com
MIT License
4.96k stars 304 forks source link

make tsconfig.json configurable #1258

Open munxar opened 3 weeks ago

munxar commented 3 weeks ago

Prerequisites

Describe the feature

I know that this has been discussed here https://github.com/huntabyte/shadcn-svelte/issues/214.

My issue is that I have a Svelte / Inertia / AdonisJS project that uses multiple tsconfig.json files (frontend / backend). Other shadcn ports like shadcn-vue make this configurable in the cli (https://github.com/radix-vue/shadcn-vue/blob/85b10641c22a7ce0275219bee78a4a9e8e586b46/packages/cli/src/commands/init.ts#L142) and store the tsconfig.json in the components.json. Could this be an option? If you don't like the additional setup step, an option to overwrite in components.json would help in this edge cases.

p.s. sorry for the "hacking" the prerequisitites. p.p.s. As a workaround I currently just add the path aliases to my root tsconfig.json when running the cli.

huntabyte commented 1 day ago

Do you have any thoughts on the feasibility of this @AdrianGonz97 ?