grepmax 0.12.5 → 0.12.7
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.
|
@@ -206,9 +206,26 @@ class Daemon {
|
|
|
206
206
|
if (proj) {
|
|
207
207
|
(0, project_registry_1.registerProject)(Object.assign(Object.assign({}, proj), { lastIndexed: new Date().toISOString() }));
|
|
208
208
|
}
|
|
209
|
+
// Back to watching after batch completes
|
|
210
|
+
(0, watcher_store_1.registerWatcher)({
|
|
211
|
+
pid: process.pid,
|
|
212
|
+
projectRoot: root,
|
|
213
|
+
startTime: Date.now(),
|
|
214
|
+
status: "watching",
|
|
215
|
+
lastHeartbeat: Date.now(),
|
|
216
|
+
lastReindex: Date.now(),
|
|
217
|
+
});
|
|
209
218
|
},
|
|
210
219
|
onActivity: () => {
|
|
211
220
|
this.lastActivity = Date.now();
|
|
221
|
+
// Mark as syncing while processing
|
|
222
|
+
(0, watcher_store_1.registerWatcher)({
|
|
223
|
+
pid: process.pid,
|
|
224
|
+
projectRoot: root,
|
|
225
|
+
startTime: Date.now(),
|
|
226
|
+
status: "syncing",
|
|
227
|
+
lastHeartbeat: Date.now(),
|
|
228
|
+
});
|
|
212
229
|
},
|
|
213
230
|
});
|
|
214
231
|
this.processors.set(root, processor);
|
package/dist/lib/index/walker.js
CHANGED
|
@@ -132,10 +132,15 @@ function _walk(currentDir, rootDir, stack, ignoreFiles) {
|
|
|
132
132
|
const absPath = path.join(currentDir, entry.name);
|
|
133
133
|
const relPathToRoot = path.relative(rootDir, absPath);
|
|
134
134
|
// 1. Check if ignored by any scope in the stack
|
|
135
|
+
const isDir = entry.isDirectory();
|
|
135
136
|
let isIgnored = false;
|
|
136
137
|
for (const scope of stack) {
|
|
137
138
|
const relToScope = path.relative(scope.dir, absPath);
|
|
138
|
-
if (relToScope
|
|
139
|
+
if (!relToScope)
|
|
140
|
+
continue;
|
|
141
|
+
// Append trailing slash for directories so patterns like "dist/" match
|
|
142
|
+
const testPath = isDir ? `${relToScope}/` : relToScope;
|
|
143
|
+
if (scope.filter.ignores(testPath)) {
|
|
139
144
|
isIgnored = true;
|
|
140
145
|
break;
|
|
141
146
|
}
|
package/package.json
CHANGED