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

fix: Add types field to package.json exports #47

Merged
merged 4 commits into from
Dec 29, 2023
Merged

fix: Add types field to package.json exports #47

merged 4 commits into from
Dec 29, 2023

Conversation

lachlancollins
Copy link
Contributor

Hi @ConsoleTVs , this is a small PR that improves typescript compatibility. At the moment, publint and ATTW give a warning about the missing exports["."]["types"] field.

What's changed:

  • Added exports["."]["types"] field
  • Marked the package as "type": "module" (.js interpreted as ESM)
  • Added src directory to output (probably not that useful since there aren't sourcemaps but still nice to be able to inspect the source)

@lachlancollins
Copy link
Contributor Author

Hi @ConsoleTVs, just wondering if you could check out this PR? Thanks!

@ConsoleTVs
Copy link
Owner

Hi @lachlancollins, Would it be possible to update to Vite 5? I feel this change would also be welcome!

@lachlancollins
Copy link
Contributor Author

Hi @lachlancollins, Would it be possible to update to Vite 5? I feel this change would also be welcome!

No worries! Since there were 2 lockfiles, I've removed package-lock.json in favour of yarn.lock, and updated Vite and TS. I've put the Svelte v5 alpha in peerDeps.

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.

2 participants