From 24d615c2a04e9cd58b8d393fdf51a62d34ef8507 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 9 Jan 2022 15:54:38 -0600 Subject: [PATCH] Make tsc command use full path to tsconfig --- package.json | 2 +- src/phases/CompilePhase.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cfb28ea..5ad05dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/cc", - "version": "0.3.0", + "version": "0.4.0", "description": "Early-phase compiler for Extollo projects", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/phases/CompilePhase.ts b/src/phases/CompilePhase.ts index 10ecf40..9d1c21f 100644 --- a/src/phases/CompilePhase.ts +++ b/src/phases/CompilePhase.ts @@ -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 { 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'))