Skip to content

Commit 623959b

Browse files
committed
Merge pull request #340 from jgoz/use-correct-rootDir
Use correct 'rootDir' setting in Project.src
2 parents 0df1390 + 8547efb commit 623959b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export class Project {
9191
src() {
9292
let configPath = path.dirname(this.configFileName)
9393
let base: string;
94-
if (this.config.compilerOptions && this.config.compilerOptions.rootDir) {
95-
base = path.resolve(configPath, this.config.compilerOptions.rootDir);
94+
if (this.options["rootDir"]) {
95+
base = path.resolve(configPath, this.options["rootDir"]);
9696
}
9797

9898
if (!this.config.files) {

0 commit comments

Comments
 (0)