dts infinite loop
Open
bug
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
I think #836 may have introduced an infinite loop when compiling type declarations in watch mode. I get this in 6.6.3 when running my project with the `watch` and `dts` flags:

If I rollback to 6.6.2 it works as expected and only runs once.
Contributor guide
Research direction
Reproduce the report with tsup 6.6.3 using the watch and dts flags, then compare behavior with 6.6.2. Inspect the changes from issue #836 and the 13-comment discussion to locate the declaration-watch loop; done means watch mode performs one declaration build instead of looping indefinitely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100