Skip to content

Commit

Permalink
fix(build/package): trim logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 31, 2018
1 parent f854653 commit fdd8854
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default class Package extends EventEmitter {
if (r.error) {
this.logger.error(fullCommand, r.error)
} else {
this.logger.success(fullCommand, r.output.join('\n'))
this.logger.success(fullCommand, r.output)
}
}

Expand All @@ -198,9 +198,12 @@ export default class Package extends EventEmitter {
pid: r.pid,
status: r.status,
signal: r.signal,
output: (r.output || []).join('\n'),
stdout: String(r.stdout).trim(),
stderr: String(r.stderr).trim()
stderr: String(r.stderr).trim(),
output: (r.output || [])
.map(l => String(l).trim())
.filter(l => l.length)
.join('\n')
}
}

Expand Down

0 comments on commit fdd8854

Please sign in to comment.