UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

19 lines (18 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleForceShutdown = handleForceShutdown; const shutdown_utils_1 = require("./shutdown-utils"); const server_1 = require("./server"); async function handleForceShutdown(server) { setTimeout(async () => { await (0, shutdown_utils_1.handleServerProcessTermination)({ server, reason: 'Request to shutdown', sockets: server_1.openSockets, }); }); return { description: 'Shutdown initiated', response: '{}', }; }