mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 17:41:06 +08:00
Merge pull request #1837 from storybooks/rn-packager-port
Added option for custom packager port
This commit is contained in:
commit
4a94cc57b8
2
app/react-native/src/bin/storybook-start.js
vendored
2
app/react-native/src/bin/storybook-start.js
vendored
@ -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 <packagerPort>', '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(' '),
|
||||
|
Loading…
x
Reference in New Issue
Block a user