generated from garrettmills/template-npm-typescript
decode output from compile phase
This commit is contained in:
parent
af8b5ff875
commit
d841fa7a97
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user