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

Svelte v5 + Sveltekit: Index.d.ts is not generated when exporting components as object properties #12785

Open
webJose opened this issue Aug 10, 2024 · 0 comments

Comments

@webJose
Copy link
Contributor

webJose commented Aug 10, 2024

Describe the bug

Take the REPL code, but in a Sveltekit project using TypeScript for the purposes of creating an NPM package. The idea here is to collect multiple small components that compose the entirety of Bootstrap's Card component into a single object, exported from index.js as Card.

When applying this strategy, index.d.ts is not generated. There are no visible errors when running npm run package. I can only assume that the problem is in the component typing, as runtime-wise, the trick works (as seen in the REPL).

Reproduction

REPL

Logs

No response

System Info

Svelte v5@next.203

Severity

annoyance

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

No branches or pull requests

1 participant