I don't know how describe my problem correctly. When I use tsup in watch mode, then use onSuccess to trigger something, it's works on linux but on windows the behavior is strange. This is the script I run
tsup --watch --onSuccess 'node dist/main.js'
On linux, the behaviour is correct, but on windows, node dist/main.js run before tsup finishing bundling so it will throw error that dist/main.js doesn't exist. Did I miss something?
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
I don't know how describe my problem correctly. When I use tsup in watch mode, then use
onSuccess
to trigger something, it's works on linux but on windows the behavior is strange. This is the script I runOn linux, the behaviour is correct, but on windows,
node dist/main.js
run before tsup finishing bundling so it will throw error thatdist/main.js
doesn't exist. Did I miss something?Upvote & Fund