grepmax 0.14.6 → 0.14.8
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.
|
@@ -131,7 +131,10 @@ class Daemon {
|
|
|
131
131
|
stale: 120000,
|
|
132
132
|
onCompromised: () => {
|
|
133
133
|
console.error("[daemon] Lock compromised — another daemon took over. Shutting down.");
|
|
134
|
-
|
|
134
|
+
// Force exit after timeout — shutdown() is async and may not fully
|
|
135
|
+
// clear event loop references, leaving zombie daemon processes.
|
|
136
|
+
setTimeout(() => process.exit(1), 10000).unref();
|
|
137
|
+
this.shutdown().finally(() => process.exit(0));
|
|
135
138
|
},
|
|
136
139
|
});
|
|
137
140
|
(0, logger_1.debug)("daemon", "lock acquired");
|
|
@@ -53,7 +53,7 @@ const pool_1 = require("../workers/pool");
|
|
|
53
53
|
const watcher_batch_1 = require("./watcher-batch");
|
|
54
54
|
// Fast path-segment check to reject events that leak through FSEvents overflow.
|
|
55
55
|
// Matches /node_modules/, /.git/, /dist/, /build/, /.next/, etc. anywhere in path.
|
|
56
|
-
const IGNORED_PATH_SEGMENTS_RE = /\/(?:node_modules|\.git|\.next|\.nuxt|__pycache__|coverage|\.gmax)\//;
|
|
56
|
+
const IGNORED_PATH_SEGMENTS_RE = /\/(?:node_modules|\.git|\.next|\.nuxt|__pycache__|coverage|\.gmax|\.venv|venv|site-packages|dist|build|out|target|vendor|\.tox|\.gradle|\.m2)\//;
|
|
57
57
|
const DEBOUNCE_MS = 2000;
|
|
58
58
|
const MAX_RETRIES = 5;
|
|
59
59
|
const MAX_BATCH_SIZE = 50;
|
|
@@ -59,7 +59,16 @@ exports.WATCHER_IGNORE_GLOBS = [
|
|
|
59
59
|
"__pycache__",
|
|
60
60
|
"coverage",
|
|
61
61
|
"venv",
|
|
62
|
+
".venv",
|
|
63
|
+
"site-packages",
|
|
64
|
+
".tox",
|
|
65
|
+
".mypy_cache",
|
|
66
|
+
".pytest_cache",
|
|
62
67
|
".next",
|
|
68
|
+
".nuxt",
|
|
69
|
+
".gradle",
|
|
70
|
+
".m2",
|
|
71
|
+
"vendor",
|
|
63
72
|
"lancedb",
|
|
64
73
|
".*", // dotfiles
|
|
65
74
|
"**/*.tmp.*", // editor atomic save artifacts
|
package/package.json
CHANGED