Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encapsulate Kit-specific TypeScript config behind extends #3846

Closed
Rich-Harris opened this issue Feb 11, 2022 · 1 comment
Closed

Encapsulate Kit-specific TypeScript config behind extends #3846

Rich-Harris opened this issue Feb 11, 2022 · 1 comment

Comments

@Rich-Harris
Copy link
Member

Describe the problem

Follow-up to the discussion in #3064. The tsconfig.json that gets created with a new project has a variety of Kit-specific properties. It's fine, but it we add new config over time it won't be reflected in existing projects, and it feels a bit untidy/brittle to have things the kit.files.lib config be duplicated in the tsconfig.json paths config.

Describe the proposed solution

It might be better to have "extends": "[something]" where Kit-specific config is contained in [something]. The simplest version of this would be something along the lines of @sveltejs/kit/tsconfig, but that has the drawback of not being able to contain app-specific types (like aliases derived from svelte.config.js, or other generated types — #647). Extending from .svelte-kit/tsconfig.json is a possibility, but a) it's a bit ugly and b) it would only be created/updated when you were developing or building your app, which would mean squigglies in the meantime.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

@benmccann benmccann added this to the 1.0 milestone Feb 11, 2022
@Rich-Harris
Copy link
Member Author

closed via #4118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants