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

respect the types config property for svelte files #341

Merged
merged 2 commits into from
Oct 23, 2022
Merged

Conversation

ryanatkn
Copy link
Owner

@ryanatkn ryanatkn commented Oct 23, 2022

The types config property was originally designed to speed up development, avoiding outputting types when unnecessary. I now have a usecase where I want to publish Svelte files without types to npm, so they can be used in the Svelte REPL.

This isn't ideal however, because that means the published package will also lack .d.ts for JS files, but for my particular usecase, this semi-broken state seems ok for now. In a perfect world, we'd output .d.ts files that work for type-less Svelte, or the REPL would support TS. (https://learn.svelte.dev may eventually?)

Also upgrades deps.

@ryanatkn ryanatkn merged commit 216c291 into main Oct 23, 2022
@ryanatkn ryanatkn deleted the svelte-types branch October 23, 2022 18:19
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 this pull request may close these issues.

None yet

1 participant