statikapi 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/dev.js +4 -3
package/package.json
CHANGED
package/src/commands/dev.js
CHANGED
|
@@ -421,9 +421,10 @@ export default async function devCmd(argv) {
|
|
|
421
421
|
// Keep process alive until SIGINT
|
|
422
422
|
await new Promise((resolve) => {
|
|
423
423
|
const stop = () =>
|
|
424
|
-
Promise.allSettled([
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
Promise.allSettled([
|
|
425
|
+
watcher.close(),
|
|
426
|
+
new Promise((_resolve) => server.close(() => _resolve())),
|
|
427
|
+
]).then(() => resolve());
|
|
427
428
|
process.on('SIGINT', stop);
|
|
428
429
|
process.on('SIGTERM', stop);
|
|
429
430
|
});
|