Skip to content

Commit 63eb7e3

Browse files
authored
Merge pull request #29 from wyattjoh/fix-28
Fix rootDir handling
2 parents 95955af + 3fdeee1 commit 63eb7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function getTypescriptConfig(
9393
}
9494

9595
// disallow overrriding rootDir
96-
if (path.resolve(configParseResult.options.rootDir) !== path.resolve(cwd) && logger) {
96+
if (configParseResult.options.rootDir && path.resolve(configParseResult.options.rootDir) !== path.resolve(cwd) && logger) {
9797
logger.log('Warning: "rootDir" from local tsconfig.json is overriden')
9898
}
9999
configParseResult.options.rootDir = cwd

0 commit comments

Comments
 (0)