Merge pull request #1028 from Tyriar/1024_fix_windows_build_issue

Normalize tsconfig outDir
This commit is contained in:
Daniel Imms
2017-10-05 08:35:43 -07:00
committed by GitHub
+2 -2
View File
@@ -25,8 +25,8 @@ let outDir = tsProject.config.compilerOptions.outDir;
// Under some environments like TravisCI, this comes out at absolute which can
// break the build. This ensures that the outDir is absolute.
if (outDir.indexOf(__dirname) !== 0) {
outDir = `${__dirname}/${outDir}`;
if (path.normalize(outDir).indexOf(__dirname) !== 0) {
outDir = `${__dirname}/${path.normalize(outDir)}`;
}
/**