generated from garrettmills/template-npm-typescript
Make tsc command use full path to tsconfig
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as childProcess from 'child_process'
|
||||
import * as path from 'path'
|
||||
import {Phase} from './Phase'
|
||||
import {ExtolloCompileConfig} from '../types'
|
||||
import {Logger} from '../Logger'
|
||||
@@ -15,7 +16,8 @@ export class CompilePhase extends Phase {
|
||||
|
||||
public run(): Promise<void> {
|
||||
Logger.verb('tsc', 'transpile sources')
|
||||
const tsc = childProcess.spawn('tsc', ['-p', this.tsconfigPath])
|
||||
Logger.verb('++', `tsc -p ${path.resolve(this.tsconfigPath)}`)
|
||||
const tsc = childProcess.spawn('tsc', ['-p', path.resolve(this.tsconfigPath)])
|
||||
|
||||
tsc.stdout.on('data', (output: Buffer) => {
|
||||
Logger.info('tsc', output.toString('utf-8'))
|
||||
|
||||
Reference in New Issue
Block a user