fix(cli): restart stale clients after updates
This commit is contained in:
parent
f9d1d3b259
commit
910af9a122
13 changed files with 246 additions and 25 deletions
6
packages/cli/test/fixture/restart-child.ts
Normal file
6
packages/cli/test/fixture/restart-child.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const stateFile = process.argv[2]
|
||||
const exit = Number(process.argv[3])
|
||||
const count = (await Bun.file(stateFile).exists()) ? Number(await Bun.file(stateFile).text()) : 0
|
||||
|
||||
await Bun.write(stateFile, String(count + 1))
|
||||
process.exit(exit || (count === 0 ? 75 : 0))
|
||||
Loading…
Add table
Add a link
Reference in a new issue