Normalize tsconfig outDir
It was coming out with the wrap path separators on Windows Fixes #1024
This commit is contained in:
+2
-2
@@ -25,8 +25,8 @@ let outDir = tsProject.config.compilerOptions.outDir;
|
|||||||
|
|
||||||
// Under some environments like TravisCI, this comes out at absolute which can
|
// Under some environments like TravisCI, this comes out at absolute which can
|
||||||
// break the build. This ensures that the outDir is absolute.
|
// break the build. This ensures that the outDir is absolute.
|
||||||
if (outDir.indexOf(__dirname) !== 0) {
|
if (path.normalize(outDir).indexOf(__dirname) !== 0) {
|
||||||
outDir = `${__dirname}/${outDir}`;
|
outDir = `${__dirname}/${path.normalize(outDir)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user