Feature/watch symlinks

Summary:
see #9009

cc bestander
Closes https://github.com/facebook/react-native/pull/9176

Differential Revision: D3662018

Pulled By: bestander

fbshipit-source-id: a4c03e69e5215377b1edac940f0254a0fd429258
This commit is contained in:
Kureev Alexey 2016-08-03 03:37:09 -07:00 committed by Facebook Github Bot 8
parent f80b93afd3
commit 59a1311c86
1 changed files with 5 additions and 5 deletions

View File

@ -13,16 +13,16 @@ const formatBanner = require('./formatBanner');
const path = require('path');
const runServer = require('./runServer');
const findSymlinksPaths = require('./findSymlinksPaths');
const NODE_MODULES = path.resolve(__dirname, '..', '..', '..');
/**
* Starts the React Native Packager Server.
*/
function server(argv, config, args) {
// Disabled temporarily to fix trunk
// args.projectRoots = args.projectRoots.concat(
// args.root,
// findSymlinksPaths(path.resolve(process.cwd(), 'node_modules'))
// );
args.projectRoots = args.projectRoots.concat(
args.root,
findSymlinksPaths(NODE_MODULES)
);
console.log(formatBanner(
'Running packager on port ' + args.port + '.\n\n' +