Skip to content

Commit

Permalink
fix(cli): filepath compatibility with windows
Browse files Browse the repository at this point in the history
Co-authored-by: Gary Mathews <contact@garymathews.com>
  • Loading branch information
sgtcoolguy and garymathews committed Mar 1, 2021
1 parent 4642c6f commit 824488f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/gather.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Walker {
return;
}
const info = new FileInfo(name, from, to);
const relPath = from.replace((origSrc || src) + '/', prefix ? prefix + '/' : '');
const relPath = from.replace((origSrc || src) + path.sep, prefix ? prefix + path.sep : '').replace(/\\/g, '/');
results.set(relPath, info);
}
}
Expand Down

0 comments on commit 824488f

Please sign in to comment.