From 566125af3f3595df258e10482b98301f68765d1a Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Thu, 27 Jul 2023 07:06:58 -0700 Subject: [PATCH] spawn to set shell option Summary: This is needed on Windows, otherwise it just throws an error when using spawn. Reviewed By: passy Differential Revision: D47832379 fbshipit-source-id: c1a5094c2e72683a695949cd99b2a1054f01aced --- desktop/scripts/build-flipper-server-release.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/scripts/build-flipper-server-release.tsx b/desktop/scripts/build-flipper-server-release.tsx index 461461a50..1e3b0ed6a 100644 --- a/desktop/scripts/build-flipper-server-release.tsx +++ b/desktop/scripts/build-flipper-server-release.tsx @@ -333,6 +333,7 @@ async function packNpmArchive(dir: string, versionNumber: any) { const archive = path.resolve(distDir, 'flipper-server.tgz'); await spawn('yarn', ['pack', '--filename', archive], { cwd: dir, + shell: true, stdio: 'inherit', }); @@ -357,6 +358,7 @@ async function runPostBuildAction(archive: string, dir: string) { ], { stdio: 'inherit', + shell: true, }, ); } else if (argv.start) { @@ -367,6 +369,7 @@ async function runPostBuildAction(archive: string, dir: string) { { cwd: dir, stdio: 'inherit', + shell: true, }, ); } @@ -396,6 +399,7 @@ async function yarnInstall(dir: string) { { cwd: dir, stdio: 'inherit', + shell: true, }, );