From 1f9302a5586e379e30a74e47815415f4f9961286 Mon Sep 17 00:00:00 2001 From: Louis-Dominique Dubeau Date: Thu, 14 Feb 2019 08:27:34 -0500 Subject: [PATCH] Pass the full path of the configuration file. Fixes #563 The fix is actually the change in main.ts. The same change was applied to project.ts though I've not found a way to create a test case that generates there. (It may not be currently possible to generate such a case.) It just seems that the two calls to parseJsonConfigFileContent should pass the whole path to the config. --- lib/main.ts | 2 +- lib/project.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.ts b/lib/main.ts index 89e27b6e..a758c0c0 100644 --- a/lib/main.ts +++ b/lib/main.ts @@ -219,7 +219,7 @@ module compile { getTsconfigSystem(typescript), path.resolve(projectDirectory), compilerOptions, - path.basename(tsConfigFileName)); + tsConfigFileName); rawConfig = parsed.raw; diff --git a/lib/project.ts b/lib/project.ts index 1941bf6c..a9674a51 100644 --- a/lib/project.ts +++ b/lib/project.ts @@ -126,7 +126,7 @@ function src(this: Project) { this.typescript.sys, path.resolve(this.projectDirectory), undefined, - path.basename(this.configFileName)); + this.configFileName); for (const error of errors) { console.log(error.messageText);