Skip to content

Commit

Permalink
Pass the full path of the configuration file.
Browse files Browse the repository at this point in the history
Fixes ivogabe#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.
  • Loading branch information
lddubeau committed Feb 14, 2019
1 parent 4c27021 commit 1f9302a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ module compile {
getTsconfigSystem(typescript),
path.resolve(projectDirectory),
compilerOptions,
path.basename(tsConfigFileName));
tsConfigFileName);

rawConfig = parsed.raw;

Expand Down
2 changes: 1 addition & 1 deletion lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1f9302a

Please sign in to comment.