diff --git a/app/react-native/src/bin/storybook-start.js b/app/react-native/src/bin/storybook-start.js index 66b7802a8bdf..7b6a457281df 100644 --- a/app/react-native/src/bin/storybook-start.js +++ b/app/react-native/src/bin/storybook-start.js @@ -16,6 +16,7 @@ program .option('--skip-packager', 'run only storybook server') .option('-i, --manual-id', 'allow multiple users to work with same storybook') .option('--smoke-test', 'Exit after successful start') + .option('--packager-port ', 'Custom packager port') .parse(process.argv); const projectDir = path.resolve(); @@ -69,6 +70,7 @@ if (!program.skipPackager) { `--projectRoots ${projectRoots.join(',')}`, `--root ${projectDir}`, program.resetCache && '--reset-cache', + program.packagerPort && `--port=${program.packagerPort}`, ] .filter(x => x) .join(' '),