-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
chore: update types resolution setup #10997
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
Conversation
|
|
We've avoided updating to TypeScript 5 (and thus dts-buddy as well) to avoid any breaking changes. Hopefully we can do it soon with SvelteKit 2, but can we skip that part for now? |
|
How would the TS version we use affect the users? I thought it's a dev dep we can choose ourselves 🤔 I can certainly try to avoid bumping typescript and dts-buddy but it'll be a bit tricky. |
|
If we use Typescript 5 then people can start using newer language features that didn't exist in Typescript 4 I haven't checked yet if dts-buddy actually requires Typescript 5. Perhaps we could set it's peer range to include 4 as well |
|
Hmm I'm not really sure we should hold ourselves back for that. We could create a separate But if we prefer to not bump it, I can keep that and find some middleground fix later tonight. |
|
If we wanted to have a |
|
I reverted the deps upgrade, and added a types fix to support Vite 5 so typecheck passes in vite-ecosystem-ci. 133ee43 I had to use There still seems to be test fails in Vite 5 (typechecking aside). I think I'll look into that in a separate PR. |
|
Looked at the test fail, looks like it's also related to types. It's failing here. Can't really fix that with |
|
ooh, wait. I just noticed something. don't merge yet! |
|
Thanks for cleaning up the PR. I'm not sure why you removed the skips though, I noted at #10997 (comment) why it's needed. Though also understandable if you want to handle this when we upgrade TS and support Vite 5 later? |
|
I'm afraid I still don't understand why you had the skips. I'm not getting any errors without them. What do you need to do to see errors without them present? |
|
You can link Vite 5 locally, and run |
While fixing issues to support Vite 5, the types moduleResolution setup needs to be updated to use
node16to work. I also aligned the existing tsconfig setup so it's consistent.NOTE: This only fixes the typechecking issues with Vite 5, there still seems to be test fails with it that I'll look into separately.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.