Skip to content

Commit

Permalink
fix: bypass windows argument rewrite issue
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Nov 17, 2020
1 parent e179d47 commit f48092d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/skeleton-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ module.exports = async function(supplier, {
supplier += '/new';
}

// On windows, somewhere (npm/npx/nodejs) rewrote
// "makes aurelia/v1" into "makes aurelia\v1".
// Bypass this windows issue here.
supplier = supplier.replace('\\', '/');

const result = _resolve(supplier);
if (!result) {
throw new SoftError('Cannot find git repo ' + supplier);
Expand Down

0 comments on commit f48092d

Please sign in to comment.