fix(cli): force exiting after 10 seconds should not change the exit code

If all migrations have been run successfully we want the exit code to be 0 even though we had to force exit the process.
This is because on some platforms (e.g. Bun) all handles are not cleaned up the same as in NodeJS, so lets be forgiving.
This commit is contained in:
Joakim Carlstein 2024-02-05 15:46:56 +01:00 committed by Joakim Carlstein
parent f720aae83d
commit 61cbcbd691
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': patch
---
Force exiting after 10 seconds should not change the exit code, i.e. if all migrations have run successfully the exit code should be 0