eslint / eslint/js

Change Request: Stop publishing declaration map files for espree

Open
#755 3 comments 0 reactions 1 assignee Claimed by @sethamus View on GitHub
accepted blocked enhancement
Dominant language
JavaScript
Stars
2.4k
Forks
234
Avg merge
28m
Merged PRs (30d)
2

Description

### Which packages would you like to change?

- [x] `espree`
- [ ] `eslint-scope`
- [ ] `eslint-visitor-keys`

### What problem do you want to solve?

`eslint-scope` and `eslint-visitor-keys` do not publish declaration map files, whereas `espree` currently does.

According to the [tsup documentation](https://tsup.egoist.dev/#generate-typescript-declaration-maps--d-ts-map), 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

- [x] I am willing to submit a pull request for this change.

### AI acknowledgment

- [x] 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.

### Additional comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.