Validate ESM before npm publish #46081
Labels
feature request
Issues that request new features to be added to Node.js.
npm
Issues and PRs related to the npm client dependency or the npm registry.
wrong repo
Issues that should be opened in another repository.
What is the problem this feature will solve?
Many npm packages contain invalid ESM, which makes Node.js choke.
The situation is quite bad, as described in #46074.
What is the feature you are proposing to solve the problem?
Validate the npm package before it's being published: npm should reject any
npm publish
that publishes invalid ESM.For reference, https://publint.dev is a project that validates whether an npm package is published correctly.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: