feat(mod_logger): add centralized TsBuildLogger and replace ad-hoc console output with structured, colored logging

This commit is contained in:
2026-03-06 07:32:35 +00:00
parent 83e0e9b5dd
commit b3d1982170
8 changed files with 169 additions and 137 deletions

View File

@@ -2,6 +2,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { TsPublishConfig } from '../mod_config/index.js';
import { FsHelpers } from '../mod_fs/index.js';
import { TsBuildLogger as log } from '../mod_logger/index.js';
/**
* TsUnpacker handles flattening of nested TypeScript output directories.
@@ -127,7 +128,7 @@ export class TsUnpacker {
// Step 3: Remove the now-empty nested directory
fs.rmdirSync(nestedPath);
console.log(` 📦 Unpacked ${this.sourceFolderName}: ${nestedEntries.length} entries`);
log.detail('📦', `Unpacked ${this.sourceFolderName}: ${nestedEntries.length} entries`);
return true;
}