Simple fix for #4721

This makes relative outDir and other file path options not ignored when they point to the working directory.
No tests are failed.

Another way to fix this is to use `options.somePathOprtion !== undefined` check everywhere, but it would be a more complex change.
What do you think?
This commit is contained in:
Denis Nedelyaev
2015-09-10 21:16:16 +03:00
parent 4be0ddba53
commit 6a9bd1432c

View File

@@ -446,6 +446,9 @@ namespace ts {
}
if (opt.isFilePath) {
value = normalizePath(combinePaths(basePath, value));
if (value === "") {
value = ".";
}
}
options[opt.name] = value;
}
@@ -495,4 +498,4 @@ namespace ts {
return fileNames;
}
}
}
}