-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
TypeScript definition reference dist
dir not bundled in the npm
#2874
Comments
I cannot reproduce it. |
You can reproduce it by creating a new project and adding svelte as dependency. |
Opened a PR for a simple fix (see above), though tbh I'm not sure why compiled JS is left in the root dir while generated types are put in @Rich-Harris thoughts on the above? |
Some absolute imports can't be resolved such as: 'svelte/internal' in |
Compiled JS is left at the root so that components can do things like import from |
Ah I see, that makes sense. In that case, I think it'd be simpler to have declaration files generated at root as well. This is both more consistent, and allows us to remove the boilerplate-y |
publish dist in order to get types
I think it is slightly odd to have types in Best solution I think is to move |
👍 to having them live in |
One option for this I've seen and used is for every |
Errors during compilation:
The text was updated successfully, but these errors were encountered: