nx 22.1.0-canary.20251117-e8576a8 → 22.1.0-canary.20251119-7b9970f
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 +11 -11
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +5 -5
- package/src/core/graph/main.js +1 -1
- package/src/daemon/server/server.js +9 -9
- package/src/hasher/task-hasher.js +1 -1
- package/src/native/index.d.ts +1 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
|
@@ -401,20 +401,20 @@ async function startServer() {
|
|
|
401
401
|
if (!socket_utils_1.isWindows) {
|
|
402
402
|
(0, socket_utils_1.killSocketOrPath)();
|
|
403
403
|
}
|
|
404
|
+
setInterval(() => {
|
|
405
|
+
if ((0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
|
|
406
|
+
return (0, shutdown_utils_1.handleServerProcessTermination)({
|
|
407
|
+
server,
|
|
408
|
+
reason: 'this process is no longer the current daemon (native)',
|
|
409
|
+
sockets: exports.openSockets,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}, 20).unref();
|
|
404
413
|
return new Promise(async (resolve, reject) => {
|
|
405
414
|
try {
|
|
406
415
|
server.listen((0, socket_utils_1.getFullOsSocketPath)(), async () => {
|
|
407
416
|
try {
|
|
408
417
|
logger_1.serverLogger.log(`Started listening on: ${(0, socket_utils_1.getFullOsSocketPath)()}`);
|
|
409
|
-
setInterval(() => {
|
|
410
|
-
if ((0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
|
|
411
|
-
return (0, shutdown_utils_1.handleServerProcessTermination)({
|
|
412
|
-
server,
|
|
413
|
-
reason: 'this process is no longer the current daemon (native)',
|
|
414
|
-
sockets: exports.openSockets,
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
}, 20).unref();
|
|
418
418
|
// this triggers the storage of the lock file hash
|
|
419
419
|
daemonIsOutdated();
|
|
420
420
|
if (!(0, shutdown_utils_1.getWatcherInstance)()) {
|
package/src/native/index.d.ts
CHANGED
|
Binary file
|