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
A problem today is that many packages ship with broken sourcemaps (e.g. sources point to files that don't exist in the package tgz) but nothing in the publishing workflow alerts maintainers that something is wrong.
It would be nice if npm publish for public packages failed by default if the sourcemap is broken.
The text was updated successfully, but these errors were encountered:
justingrant
changed the title
Should npm publish of public packages validate sourcemaps?
Should npm publish validate sourcemaps of public packages?
May 18, 2023
In the ideal world it would be great to have that, however I'm not sure how feasible this is with the current state of ecosystem. Although, nothing stops us from aiming high :)
A nice middle-ground for now would be to create a cli, based on #15 that could be used as a part of npm prepublish step, which could in the future become a built-in feature.
A problem today is that many packages ship with broken sourcemaps (e.g.
sources
point to files that don't exist in the package tgz) but nothing in the publishing workflow alerts maintainers that something is wrong.It would be nice if
npm publish
for public packages failed by default if the sourcemap is broken.The text was updated successfully, but these errors were encountered: