You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?Beta Was this translation helpful? Give feedback.
All reactions