Fix babel worker special cases check on windows
This commit is contained in:
parent
7c201f5d59
commit
64234d2bb4
2 changed files with 17 additions and 10 deletions
|
@ -111,16 +111,22 @@ const formatDirsForMatcher = dirs => {
|
|||
return dirs.length > 1 ? `{${dirs.join(',')}}` : dirs[0];
|
||||
};
|
||||
|
||||
function comparePaths(actualPath, testedPath) {
|
||||
// compare paths after normalizing os-specific path separator
|
||||
return path.normalize(actualPath) === path.normalize(testedPath);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
cleanUp,
|
||||
comparePaths,
|
||||
compareSignatures,
|
||||
formatDirsForMatcher,
|
||||
getFileSignature,
|
||||
getPathRelativeTo,
|
||||
getSignatures,
|
||||
isWindows,
|
||||
onError,
|
||||
onProgress,
|
||||
onSuccess,
|
||||
cleanUp,
|
||||
getSignatures,
|
||||
getFileSignature,
|
||||
compareSignatures,
|
||||
writeSignatures,
|
||||
getPathRelativeTo,
|
||||
formatDirsForMatcher
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue