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
Change Request: Stop publishing declaration map files for espree #755
eslint-scope and eslint-visitor-keys do not publish declaration map files, whereas espree currently does.
According to the tsup documentation, declaration maps are designed for navigating local source files within a monorepo. They are not intended to be included in published NPM packages.
What do you think is the correct solution?
Update the espree build configuration to disable the generation and publishing of declaration map files.
Participation
I am willing to submit a pull request for this change.
AI acknowledgment
I did not use AI to generate this issue report.
(If the above is not checked) I have reviewed the AI-generated content before submitting.
Makes sense to me. dist/espree.d.cts.map and dist/espree.d.ts.map were added in espree v11.1.0 in 5887c4d along with the TypeScript type definitions. Since those files may be consumed by bundlers or other tooling, it seems safer to defer excluding them until the next major release.
If so, maybe this issue is better marked as blocked until then? Or could the breaking change happen in the near future?
Espree versions aren't tied to ESLint releases, so the change doesn't have to wait, but I'm not sure if we want to publish a new major release only to remove some files from the bundle. I'm going to mark this as blocked as a reminder to merge a pull request later.
Activity
fasttime commentedon Jun 8, 2026
Makes sense to me.
dist/espree.d.cts.mapanddist/espree.d.ts.mapwere added inespreev11.1.0 in 5887c4d along with the TypeScript type definitions. Since those files may be consumed by bundlers or other tooling, it seems safer to defer excluding them until the next major release.lumirlumir commentedon Jun 13, 2026
If so, maybe this issue is better marked as blocked until then? Or could the breaking change happen in the near future?
fasttime commentedon Jun 14, 2026
Espree versions aren't tied to ESLint releases, so the change doesn't have to wait, but I'm not sure if we want to publish a new major release only to remove some files from the bundle. I'm going to mark this as blocked as a reminder to merge a pull request later.