From e5984b0297e5a0e50b44ca0f29f116db446ca619 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Mon, 27 Jul 2020 23:48:24 +0200 Subject: [PATCH] Ensure symlinks are dereferenced prior to copy Only applies to the build on Windows --- scripts/symlinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/symlinks.js b/scripts/symlinks.js index a0c2d158c4..5e15748a09 100644 --- a/scripts/symlinks.js +++ b/scripts/symlinks.js @@ -38,7 +38,7 @@ async function getSymlinks(source, options, signatures) { const dest = path.join('build', f); try { if (isWindows) { - await fs.copy(f, dest); + await fs.copy(f, dest, { dereference: true }); } else { await fs.ensureSymlink(f, dest); }