fix(cli): Improve TS folder compilation order display in CLI

This commit is contained in:
2025-05-15 09:55:29 +00:00
parent 57d2726f6b
commit 52b4d8f944
3 changed files with 21 additions and 3 deletions

View File

@ -164,8 +164,20 @@ export const runCli = async () => {
const compilationCommandObject: { [key: string]: string } = {};
console.log(`\n🔄 Compiling TS folders in this order:`);
console.log(' ' + sortedTsFolders.join('\n ') + '\n');
const folderCount = sortedTsFolders.length;
console.log(`\n📂 TypeScript Folder Compilation Plan (${folderCount} folder${folderCount !== 1 ? 's' : ''})`);
console.log('┌' + '─'.repeat(60) + '┐');
console.log('│ 🔄 Compilation Order │');
console.log('├' + '─'.repeat(60) + '┤');
sortedTsFolders.forEach((folder, index) => {
const prefix = index === folderCount - 1 ? '└─' : '├─';
const position = `${index + 1}/${folderCount}`;
console.log(`${prefix} ${position.padStart(5)} ${folder.padEnd(46)}`);
});
console.log('└' + '─'.repeat(60) + '┘\n');
for (const tsFolder of sortedTsFolders) {
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
}