Merge pull request #1856 from tnajdek/fix-windows-build

Fix build on Windows
This commit is contained in:
Dan Stillman 2020-07-27 20:01:19 -04:00 committed by GitHub
commit 0cf27b9b7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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