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

[chore] introduce KitConfig type #5141

Merged
merged 4 commits into from Jun 3, 2022
Merged

[chore] introduce KitConfig type #5141

merged 4 commits into from Jun 3, 2022

Conversation

benmccann
Copy link
Member

Creates a KitConfig and ValidatedKitConfig (last file in the PR) to start to decouple the Svelte and SvelteKit configuration. We will need to figure out what to do about extensions which stops us from being able to more thoroughly convert to ValidatedKitConfig

@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2022

🦋 Changeset detected

Latest commit: 92c6b10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@benmccann benmccann changed the title [chore] introduce KitConfig type [breaking] introduce KitConfig type and use it in adapters Jun 2, 2022
@benmccann benmccann changed the title [breaking] introduce KitConfig type and use it in adapters [chore] introduce KitConfig type Jun 2, 2022
@Rich-Harris
Copy link
Member

Should we change KitConfig to UserConfig? It aligns with Vite, and this...

/** @type {import('@sveltejs/kit').UserConfig} */

...feels a bit more natural than this, to me:

/** @type {import('@sveltejs/kit').KitConfig} */

Presumably ValidatedKitConfig will be renamed to ValidatedConfig if we get rid of the current ValidatedConfig, but that's a task for future us

@Rich-Harris
Copy link
Member

I took the liberty of making that change; we can revert c0bcc3b if you disagree with it

@benmccann
Copy link
Member Author

I feel like it will be confusing to have two UserConfgs. When you hover, VS Code will show UserConfig and you won't know which kind of config it is

@Rich-Harris
Copy link
Member

fair enough. reverted

@Rich-Harris Rich-Harris merged commit 544ced0 into master Jun 3, 2022
@Rich-Harris Rich-Harris deleted the kit-config branch June 3, 2022 16:10
@github-actions github-actions bot mentioned this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants