Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #128 from Wondermall/master
Browse files Browse the repository at this point in the history
add projectDir as a packager projectRoot
  • Loading branch information
Muhammed Thanish authored Mar 8, 2017
2 parents c251480 + 8553988 commit 01419da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/storybook-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ server.listen(...listenAddr, function (err) {
console.info(`\nReact Native Storybook started on => ${address}\n`);
});

const projectRoots = configDir === projectDir ? [configDir] : [configDir, projectDir];

// RN packager
shelljs.exec([
'node node_modules/react-native/local-cli/cli.js start',
`--projectRoots ${configDir}`,
`--projectRoots ${projectRoots.join(',')}`,
`--root ${projectDir}`,
].join(' '), {async: true});

0 comments on commit 01419da

Please sign in to comment.