Skip to content

Commit

Permalink
Improve(Pack): Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jun 14, 2023
1 parent 7601cc8 commit 79e4ea4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/pack/src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,11 @@ program.command('pack [entryPaths...]', { isDefault: true })
const ctx = await context(buildOptions)
const { metafile } = await ctx.rebuild()
if (metafile) {
console.log('')
eachBuildTask.metafile = metafile
for (const outputFilePath in metafile.outputs) {
const eachOutput = metafile.outputs[outputFilePath]
const outputSize = prettyBytes(eachOutput.bytes).replace(/ /g, '')
const eachOutputFormat = metafile.outputs[outputFilePath]['format'] = eachOptions.format
log`${chalk.dim('│')} $t [${eachOutputFormat}] **${outputFilePath}** ${outputSize} (${Object.keys(eachOutput.inputs).length} inputs)`
metafile.outputs[outputFilePath]['format'] = eachOptions.format
}
log.i`**options**`
log.tree({
entries: buildOptions.entryPoints,
external: buildOptions.external,
Expand Down

0 comments on commit 79e4ea4

Please sign in to comment.