decode output from compile phase

This commit is contained in:
Garrett Mills 2022-01-09 11:30:17 -06:00
parent af8b5ff875
commit d841fa7a97

View File

@ -17,12 +17,12 @@ export class CompilePhase extends Phase {
Logger.verb('tsc', 'transpile sources')
const tsc = childProcess.spawn('tsc', ['-p', this.tsconfigPath])
tsc.stdout.on('data', output => {
Logger.info('tsc', output)
tsc.stdout.on('data', (output: Buffer) => {
Logger.info('tsc', output.toString('utf-8'))
})
tsc.stderr.on('data', output => {
Logger.info('tsc', output)
tsc.stderr.on('data', (output: Buffer) => {
Logger.info('tsc', output.toString('utf-8'))
})
return new Promise((res, rej) => {