Skip to content

Commit

Permalink
Resolve scoped package paths during linking on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dpoindexter committed Nov 15, 2016
1 parent 16a5268 commit f8c836d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async function buildActionsForCopy(
const {src, dest} = data;
const onFresh = data.onFresh || noop;
const onDone = data.onDone || noop;
files.add(dest);
files.add(path.normalize(dest));

if (events.ignoreBasenames.indexOf(path.basename(src)) >= 0) {
// ignored file
Expand Down Expand Up @@ -190,7 +190,7 @@ async function buildActionsForCopy(
} else if (srcStat.isDirectory()) {
await mkdirp(dest);

const destParts = dest.split(path.sep);
const destParts = path.normalize(dest).split(path.sep);
while (destParts.length) {
files.add(destParts.join(path.sep));
destParts.pop();
Expand Down

0 comments on commit f8c836d

Please sign in to comment.