UNPKG

constatic

Version:
2 lines (1 loc) 533 B
import{buildAndFormatTree as n,divider as r,printRecordTree as s,uiMessage as t}from"#helpers";import l from"chalk";function d(o){if(o.files.length){const i=o.files.map(e=>e.dist??e.path);console.log(t({"en-US":"\u{1F5D0} Files:","pt-BR":"\u{1F5D0} Arquivos:"},l.bold)),console.log(n(i)),console.log(t({"en-US":`Total files: ${o.files.length}`,"pt-BR":`Total de arquivos: ${o.files.length}`})),r()}if(o.packageJson)for(const[i,e]of Object.entries(o.packageJson))Object.keys(e).length&&s(l.bold(`${i}:`),e)}export{d as printPreview};