Skip to content

generated types should be removed each time svelte-kit sync happens #4973

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

Closed
Rich-Harris opened this issue May 17, 2022 · 0 comments · Fixed by #4705
Closed

generated types should be removed each time svelte-kit sync happens #4973

Rich-Harris opened this issue May 17, 2022 · 0 comments · Fixed by #4705
Milestone

Comments

@Rich-Harris
Copy link
Member

Describe the bug

If you have a file like src/routes/foo.svelte and run svelte-kit sync, it will create a .svelte-kit/types/src/routes/foo.d.ts file. If you subsequently remove src/routes/foo.svelte and re-run svelte-kit sync, the generated file should also be deleted. It is not.

Reproduction

The default template (https://github.com./sveltejs/kit-template-default/) is enough to see this one; it requires you to follow the steps above.

Logs

No response

System Info

main branch

Severity

annoyance

Additional Information

No response

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

Successfully merging a pull request may close this issue.

1 participant