From e693c9e86b60c67a7a139e33726416085ca830d9 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 5 Oct 2017 07:52:34 -0700 Subject: [PATCH] Normalize tsconfig outDir It was coming out with the wrap path separators on Windows Fixes #1024 --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6a20c729..cf001da3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)}`; } /**