Skip to content

Commit 1f9302a

Browse files
committed
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.
1 parent 4c27021 commit 1f9302a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module compile {
219219
getTsconfigSystem(typescript),
220220
path.resolve(projectDirectory),
221221
compilerOptions,
222-
path.basename(tsConfigFileName));
222+
tsConfigFileName);
223223

224224
rawConfig = parsed.raw;
225225

lib/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function src(this: Project) {
126126
this.typescript.sys,
127127
path.resolve(this.projectDirectory),
128128
undefined,
129-
path.basename(this.configFileName));
129+
this.configFileName);
130130

131131
for (const error of errors) {
132132
console.log(error.messageText);

0 commit comments

Comments
 (0)