@threadbase-sh/scanner 0.9.3 → 0.9.4
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/dist/cli.js +7 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1524,10 +1524,13 @@ async function discoverJsonlFilesGated(dirs, files, scannedDirs, options = {}) {
|
|
|
1524
1524
|
const watermark = scannedDirs.get(projectDir);
|
|
1525
1525
|
const canReuse = watermark !== void 0 && watermark.mtime_ms === dirStat.mtimeMs && watermark.has_nested === 0;
|
|
1526
1526
|
if (canReuse) {
|
|
1527
|
-
|
|
1528
|
-
|
|
1527
|
+
const known = files.activePathsByParentDir(projectDir);
|
|
1528
|
+
if (known.length > 0) {
|
|
1529
|
+
for (const row of known) {
|
|
1530
|
+
results.push({ filePath: row.absolute_path, account: row.account });
|
|
1531
|
+
}
|
|
1532
|
+
continue;
|
|
1529
1533
|
}
|
|
1530
|
-
continue;
|
|
1531
1534
|
}
|
|
1532
1535
|
const found = await discoverJsonlFiles([{ projectsDir: projectDir, account }]);
|
|
1533
1536
|
const hasNested = found.some((f) => dirnameOf(f.filePath) !== projectDir);
|