Skip to content

Commit

Permalink
Merge pull request #1837 from storybooks/rn-packager-port
Browse files Browse the repository at this point in the history
Added option for custom packager port
  • Loading branch information
Gongreg authored Sep 13, 2017
2 parents 9f73119 + be88c0b commit 4a94cc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/react-native/src/bin/storybook-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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(' '),
Expand Down

0 comments on commit 4a94cc5

Please sign in to comment.