fix(unpack): catch unpack errors and add verbose unpack logging

This commit is contained in:
2026-03-05 12:29:11 +00:00
parent 7aec1548eb
commit 856099b5ed
4 changed files with 15 additions and 2 deletions

View File

@@ -128,6 +128,9 @@ export class TsUnpacker {
private async moveNestedContentsUp(): Promise<void> {
const nestedPath = this.getNestedPath();
const entries = await FsHelpers.listDirectory(nestedPath);
const dirCount = entries.filter(e => e.isDirectory).length;
const fileCount = entries.filter(e => e.isFile).length;
console.log(` 📦 Unpacking ${this.sourceFolderName}/: ${dirCount} directories, ${fileCount} files`);
for (const entry of entries) {
const src = path.join(nestedPath, entry.name);
const dest = path.join(this.destDir, entry.name);