Only execute "run" command after onEnd is done
Utsav2 opened this issue · comments
Utsav Shah commented
Currently, estrella runs the "run" command before "onEnd" is complete. Sometimes, onEnd can perform actions like moving directories which is useful to execute before the run command is executed. Perhaps this behavior could be configurable.
Rasmus commented
Oh, good idea
Rasmus commented
$ ./build.js
Wrote out/main.js (390B, 7.43ms)
user onEnd begin
user onEnd done
Hello from a running program /Users/rsms/src/estrella/examples/run/out/main.js
env["ESTRELLA_PATH"] = /Users/rsms/src/estrella/dist/estrella.js
env["ESTRELLA_VERSION"] = 1.4.0
Hello...
Hello on stderr
...world!
estrella/examples/run/build.js
Lines 10 to 17 in 33ede3c
Utsav Shah commented
Thank you!