Skip to content

Commit

Permalink
spawn to set shell option
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lblasa authored and facebook-github-bot committed Jul 27, 2023
1 parent 5b2d20e commit 566125a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop/scripts/build-flipper-server-release.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});

Expand All @@ -357,6 +358,7 @@ async function runPostBuildAction(archive: string, dir: string) {
],
{
stdio: 'inherit',
shell: true,
},
);
} else if (argv.start) {
Expand All @@ -367,6 +369,7 @@ async function runPostBuildAction(archive: string, dir: string) {
{
cwd: dir,
stdio: 'inherit',
shell: true,
},
);
}
Expand Down Expand Up @@ -396,6 +399,7 @@ async function yarnInstall(dir: string) {
{
cwd: dir,
stdio: 'inherit',
shell: true,
},
);

Expand Down

0 comments on commit 566125a

Please sign in to comment.