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')
|
Logger.verb('tsc', 'transpile sources')
|
||||||
const tsc = childProcess.spawn('tsc', ['-p', this.tsconfigPath])
|
const tsc = childProcess.spawn('tsc', ['-p', this.tsconfigPath])
|
||||||
|
|
||||||
tsc.stdout.on('data', output => {
|
tsc.stdout.on('data', (output: Buffer) => {
|
||||||
Logger.info('tsc', output)
|
Logger.info('tsc', output.toString('utf-8'))
|
||||||
})
|
})
|
||||||
|
|
||||||
tsc.stderr.on('data', output => {
|
tsc.stderr.on('data', (output: Buffer) => {
|
||||||
Logger.info('tsc', output)
|
Logger.info('tsc', output.toString('utf-8'))
|
||||||
})
|
})
|
||||||
|
|
||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user