egoist / egoist/tsup

dts infinite loop

Open
#840 13 comments 21 reactions 0 assignees View on GitHub
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:

image

If I rollback to 6.6.2 it works as expected and only runs once.

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.