Skip to content

Commit

Permalink
Merge pull request #1028 from Tyriar/1024_fix_windows_build_issue
Browse files Browse the repository at this point in the history
Normalize tsconfig outDir
  • Loading branch information
Tyriar committed Oct 5, 2017
2 parents 2ab0677 + e693c9e commit 22af08d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
}

/**
Expand Down

0 comments on commit 22af08d

Please sign in to comment.