Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95e4f1f036 | |||
| eaa66dff1d | |||
| 8bc4f173e5 | |||
| fba2cba8e8 |
14
changelog.md
14
changelog.md
@@ -1,5 +1,19 @@
|
|||||||
# Changelog
|
# 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
|
||||||
|
|
||||||
|
- Adds diagnostic logging for emitted files that are not under the configured destDir, listing up to 20 example paths and reporting the remaining count.
|
||||||
|
- Logging is conditional: only when not in quiet mode and not emitting JSON.
|
||||||
|
- Diagnostic runs after compilation (post-compile) and before unpacking of outputs; paths are trimmed using the process cwd for readability.
|
||||||
|
|
||||||
## 2026-03-05 - 4.1.20 - fix(mod_compiler)
|
## 2026-03-05 - 4.1.20 - fix(mod_compiler)
|
||||||
add diagnostic snapshots for output directories around clear and compile steps
|
add diagnostic snapshots for output directories around clear and compile steps
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tsbuild",
|
"name": "@git.zone/tsbuild",
|
||||||
"version": "4.1.20",
|
"version": "4.1.22",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.",
|
"description": "A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tsbuild',
|
name: '@git.zone/tsbuild',
|
||||||
version: '4.1.20',
|
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.'
|
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,7 +345,8 @@ export class TsCompiler {
|
|||||||
try {
|
try {
|
||||||
const entries = fs.readdirSync(prevDir);
|
const entries = fs.readdirSync(prevDir);
|
||||||
const dirs = entries.filter(e => { try { return fs.statSync(prevDir + '/' + e).isDirectory(); } catch { return false; } });
|
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 {
|
} catch {
|
||||||
console.log(` 📋 [${label}] ${prevDir.replace(this.cwd + '/', '')}: MISSING!`);
|
console.log(` 📋 [${label}] ${prevDir.replace(this.cwd + '/', '')}: MISSING!`);
|
||||||
}
|
}
|
||||||
@@ -384,6 +385,20 @@ export class TsCompiler {
|
|||||||
errorSummaries.push(result.errorSummary);
|
errorSummaries.push(result.errorSummary);
|
||||||
diagSnap('post-compile');
|
diagSnap('post-compile');
|
||||||
|
|
||||||
|
// Diagnostic: log emitted files that went to unexpected directories
|
||||||
|
if (!isQuiet && !isJson && result.emittedFiles.length > 0) {
|
||||||
|
const unexpectedFiles = result.emittedFiles.filter(f => !f.startsWith(destDir + '/') && !f.startsWith(destDir + '\\'));
|
||||||
|
if (unexpectedFiles.length > 0) {
|
||||||
|
console.log(` ⚠️ [diag] ${unexpectedFiles.length} files emitted OUTSIDE ${destPath}:`);
|
||||||
|
for (const f of unexpectedFiles.slice(0, 20)) {
|
||||||
|
console.log(` ${f.replace(this.cwd + '/', '')}`);
|
||||||
|
}
|
||||||
|
if (unexpectedFiles.length > 20) {
|
||||||
|
console.log(` ... and ${unexpectedFiles.length - 20} more`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Perform unpack if compilation succeeded
|
// Perform unpack if compilation succeeded
|
||||||
if (result.errorSummary.totalErrors === 0) {
|
if (result.errorSummary.totalErrors === 0) {
|
||||||
await performUnpack(pattern, destDir, this.cwd);
|
await performUnpack(pattern, destDir, this.cwd);
|
||||||
|
|||||||
Reference in New Issue
Block a user