Fix spurious server build error on MacOS
Summary: Copying files will randomly fail with something akin to ``` Error: Cannot copy '../acirb/bin/acorn' to a subdirectory of itself, '../acorn/bin/acorn'. ``` See https://github.com/jprichardson/node-fs-extra/issues/708 Reviewed By: antonk52 Differential Revision: D50263977 fbshipit-source-id: 39091ef57b79c692ec89e7a250595509839e2af8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
20038cdd80
commit
0cb5331c31
@@ -733,7 +733,10 @@ async function bundleServerReleaseForPlatform(
|
||||
}
|
||||
|
||||
console.log(`⚙️ Copying from ${dir} to ${outputPaths.resourcesPath}`);
|
||||
await fs.copy(dir, outputPaths.resourcesPath);
|
||||
await fs.copy(dir, outputPaths.resourcesPath, {
|
||||
overwrite: true,
|
||||
dereference: true,
|
||||
});
|
||||
|
||||
console.log(`⚙️ Downloading compatible node version`);
|
||||
await installNodeBinary(outputPaths.nodePath, platform);
|
||||
|
||||
Reference in New Issue
Block a user