From f8c836de96024fe911bf57e6f42fab840d4a8212 Mon Sep 17 00:00:00 2001 From: Daniel Poindexter Date: Tue, 15 Nov 2016 12:18:48 -0600 Subject: [PATCH] Resolve scoped package paths during linking on Windows --- src/util/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/fs.js b/src/util/fs.js index 02e9a5535b..b95fb5111e 100644 --- a/src/util/fs.js +++ b/src/util/fs.js @@ -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 @@ -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();