Skip to content

Commit

Permalink
MDL-67878 grunt: make it works on Windows
Browse files Browse the repository at this point in the history
To be honest, all the real skill here is Andrew Nicols, but I made the patch, so the credit is mine! All mine!
  • Loading branch information
timhunt committed Feb 12, 2020
1 parent 4e90332 commit 35e1470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module.exports = function(grunt) {
// * fullRunDir The full path to the runDir
const gruntFilePath = fs.realpathSync(process.cwd());
const cwd = getCwd(grunt);
const relativeCwd = cwd.replace(new RegExp(`${gruntFilePath}/?`), '');
const relativeCwd = path.relative(gruntFilePath, cwd);
const componentDirectory = ComponentList.getOwningComponentDirectory(relativeCwd);
const inComponent = !!componentDirectory;
const runDir = inComponent ? componentDirectory : relativeCwd;
Expand Down

0 comments on commit 35e1470

Please sign in to comment.