diff --git a/src/transpile.ts b/src/transpile.ts index 392127e5..36c6720f 100644 --- a/src/transpile.ts +++ b/src/transpile.ts @@ -372,7 +372,7 @@ let cachedProgram: ts.Program = null; let cachedTsConfig: TsConfig = null; export function getTsConfigPath(context: BuildContext) { - return path.join(context.rootDir, 'tsconfig.json'); + return process.env[Constants.ENV_TS_CONFIG]; } export interface TsConfig {