From 6a9bd1432c01352c2247fd05177625a4438f3ad0 Mon Sep 17 00:00:00 2001 From: Denis Nedelyaev Date: Thu, 10 Sep 2015 21:16:16 +0300 Subject: [PATCH] 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? --- src/compiler/commandLineParser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index d22bc986688..9a3931f2ec8 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -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; } } -} \ No newline at end of file +}