fix(mod_compiler): improve logging of successful output directories to include a sorted list of entries and use a shortened relative path

This commit is contained in:
2026-03-05 14:54:47 +00:00
parent 8bc4f173e5
commit eaa66dff1d
3 changed files with 10 additions and 2 deletions

View File

@@ -345,7 +345,8 @@ export class TsCompiler {
try {
const entries = fs.readdirSync(prevDir);
const dirs = entries.filter(e => { try { return fs.statSync(prevDir + '/' + e).isDirectory(); } catch { return false; } });
console.log(` 📋 [${label}] ${prevDir.replace(this.cwd + '/', '')}: ${entries.length} entries, ${dirs.length} dirs`);
const shortDir = prevDir.replace(this.cwd + '/', '');
console.log(` 📋 [${label}] ${shortDir}: ${entries.length} entries, ${dirs.length} dirs [${entries.sort().join(', ')}]`);
} catch {
console.log(` 📋 [${label}] ${prevDir.replace(this.cwd + '/', '')}: MISSING!`);
}