I recently discovered publint, and I've been using it to test svelte libraries as I was working on @tanstack/svelte-query. I noticed that it gave one suggestion for this package: https://publint.dev/svelte-headlessui
Since svelte-headlessui builds for ESM (as it should), it should use "module": "dist/index.js" instead of "main": "./dist/index.js". This probably isn't breaking anything for most people as I'm pretty sure node will read "exports" over "main", but best to fix it just in case.
Thanks, I must have seen the same tweet or wherever it was mentioned 'cause I just came across it too and ran in on some packages including this one. I was still in "do I need to do this?" mode, LOL
I recently discovered publint, and I've been using it to test svelte libraries as I was working on
@tanstack/svelte-query
. I noticed that it gave one suggestion for this package: https://publint.dev/svelte-headlessuiSince
svelte-headlessui
builds for ESM (as it should), it should use"module": "dist/index.js"
instead of"main": "./dist/index.js"
. This probably isn't breaking anything for most people as I'm pretty sure node will read "exports" over "main", but best to fix it just in case.