kit icon indicating copy to clipboard operation
kit copied to clipboard

extending a tsconfig in .svelte-kit/tsconfig.json

Open Alexandre-Fernandez opened this issue 3 years ago • 1 comments

Describe the bug

I have a monorepo which shares a base tsconfig and I want sveltekit to extend it. However the root sveltekit tsconfig extends .svelte-kit/tsconfig.json and I cannot modify .svelte-kit/tsconfig.json to extend my base tsconfig because it gets overridden by the auto-generation. So from what I understand my only choice if I want to extend my base tsconfig is to lose the autogenerated one ?

Reproduction

Create a turborepo app and create a sveltekit app inside the app folder.

Logs

No response

System Info

Linux

Severity

annoyance

Additional Information

I created this package to be able to extend multiple tsconfigs: https://github.com/Alexandre-Fernandez/tsconfig-multiple-extends

Alexandre-Fernandez avatar Sep 17 '22 22:09 Alexandre-Fernandez

Looks like there has been some work for array support for extends: https://github.com/microsoft/TypeScript/pull/50403

bluwy avatar Sep 19 '22 07:09 bluwy