Remove TCP option as it will be the only option

Summary: UDS will be removed. The first step would be to remove the TCP optionality.

Reviewed By: passy

Differential Revision: D48264741

fbshipit-source-id: ca9e1b68be61e99240e95bcd4f26f2db63a64005
This commit is contained in:
Lorenzo Blasa
2023-08-11 08:19:51 -07:00
committed by Facebook GitHub Bot
parent bdc2d5f6eb
commit 47b718d104
4 changed files with 12 additions and 49 deletions

View File

@@ -90,11 +90,6 @@ const argv = yargs
type: 'boolean',
default: false,
},
tcp: {
describe: 'Enable TCP connections on flipper-server.',
type: 'boolean',
default: true,
},
'rebuild-plugins': {
describe:
'Enables rebuilding of default plugins on Flipper build. Only make sense in conjunction with "--no-bundled-plugins". Enabled by default, but if disabled using "--no-plugin-rebuild", then plugins are just released as is without rebuilding. This can save some time if you know plugin bundles are already up-to-date.',
@@ -356,29 +351,17 @@ async function runPostBuildAction(archive: string, dir: string) {
// didn't change
console.log(`⚙️ Installing flipper-server.tgz using npx`);
await fs.remove(path.join(homedir(), '.npm', '_npx'));
await spawn(
'npx',
[
archive,
argv.open ? '--open' : '--no-open',
argv.tcp ? '--tcp' : '--no-tcp',
],
{
stdio: 'inherit',
shell: true,
},
);
await spawn('npx', [archive, argv.open ? '--open' : '--no-open'], {
stdio: 'inherit',
shell: true,
});
} else if (argv.start) {
console.log(`⚙️ Starting flipper-server from build dir`);
await spawn(
'./server.js',
[argv.open ? '--open' : '--no-open', argv.tcp ? '--tcp' : '--no-tcp'],
{
cwd: dir,
stdio: 'inherit',
shell: true,
},
);
await spawn('./server.js', [argv.open ? '--open' : '--no-open'], {
cwd: dir,
stdio: 'inherit',
shell: true,
});
}
}