Normalize tsconfig outDir

It was coming out with the wrap path separators on Windows

Fixes #1024
This commit is contained in:
Daniel Imms
2017-10-05 07:52:34 -07:00
parent e3d69d78a0
commit e693c9e86b
+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)}`;
}
/**