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)}`; } /**