You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[publint] publishConfig.exports is used for linting by warning message uses value from root's exports #883
Imagine we don't have ./dist/index.mjs file on the disk, the publint correctly report an issue, but the warning message is using data from the normal exports
The pkg would be from the tarball so it's more accurate. pkg is only returned since publint v0.3.8 though, so it would likely still need the options.pkg fallback.
Activity
bluwy commentedon Mar 31, 2026
I think this can be fixed by also getting the
pkghere:tsdown/src/features/pkg/publint.ts
Lines 38 to 41 in daed0cd
And pass it to:
tsdown/src/features/pkg/publint.ts
Line 55 in daed0cd
The
pkgwould be from the tarball so it's more accurate.pkgis only returned since publint v0.3.8 though, so it would likely still need theoptions.pkgfallback.sxzz commentedon Apr 26, 2026
The path in your reproduction is incorrect:
After correct it, it works well.
bluwy commentedon Apr 26, 2026
It's supposed to be incorrect, because the issue is demonstrating that the publint error message displays the wrong path.
sxzz commentedon Apr 27, 2026
Sorry, I misunderstood the issue.
fix(publint)!: use pkg from publint results, require publint v0.3.8+
fix(publint)!: use pkg from publint results, require publint v0.3.8+
sxzz commentedon Apr 27, 2026
Fixed in 0.22.0-beta.1