Skip to content

Commit

Permalink
Use non-ESM verison of exit-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Jan 23, 2024
1 parent b8eb20f commit 7953d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"chokidar": "~3.5.3",
"depstatus": "~1.1.1",
"dynalite": "~3.2.2",
"exit-hook": "~4.0.0",
"exit-hook": "^2.2.1",
"finalhandler": "~1.2.0",
"glob": "~10.3.10",
"http-proxy": "~1.18.1",
Expand Down
3 changes: 2 additions & 1 deletion src/cli/_stdin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
let exitHook = require('exit-hook')
let { emitKeypressEvents } = require('readline')
let sandbox = require('../')

Expand Down Expand Up @@ -38,7 +39,7 @@ module.exports = function handleStdin (params) {
}
})

import('exit-hook').then(({ asyncExitHook }) => asyncExitHook(end, { wait: 5000 }))
exitHook(end)

async function end () {
try {
Expand Down

0 comments on commit 7953d5e

Please sign in to comment.