egoist / egoist/tsup

Reload config on watch update

Open
#902 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

I am currently using `tsup` with a `tsup.config.ts`.
This config file dynamically finds the target entry files because the logic behind it is too complex for globber matching.
When using `tsup --watch` however, it seems like the config is not reloaded on file updates, thus making it so that new files are not considered as possible entry files, and the watch process has to be restarted to include them.
Ideally, I could set some config option that makes it so that the config script is re-executed whenever watch mode detects an update.

Alternatively you could declare this as out-of-scope and I will simply have to use some third party watch-runner for this.
Thank you for your time either way.

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.