Ensure symlinks are dereferenced prior to copy

Only applies to the build on Windows
This commit is contained in:
Tom Najdek 2020-07-27 23:48:24 +02:00
parent aebe2b7824
commit e5984b0297
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -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);
}