diff --git a/changelog.md b/changelog.md index 762d4cf..bce6b24 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-03-05 - 4.1.22 - fix(mod_compiler) +improve logging of successful output directories to include a sorted list of entries and use a shortened relative path + +- Adds shortDir variable to display relative path instead of repeating inline replace(this.cwd + '/') +- Appends a sorted, comma-separated list of directory entries to the log output for easier inspection +- Change located in ts/mod_compiler/classes.tscompiler.ts + ## 2026-03-05 - 4.1.21 - fix(compiler) log emitted files written outside expected destination directory for diagnostics diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c649f09..3082e54 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbuild', - version: '4.1.21', + version: '4.1.22', description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.' } diff --git a/ts/mod_compiler/classes.tscompiler.ts b/ts/mod_compiler/classes.tscompiler.ts index ff66f84..3706b05 100644 --- a/ts/mod_compiler/classes.tscompiler.ts +++ b/ts/mod_compiler/classes.tscompiler.ts @@ -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!`); }