Add a local packager config, so that react can find react-native when…

Summary:
The **motivation** for this PR is my sad colleague bestander: I managed to break travis with bd60d828c5, without considering the consequences. This PR solves this failure, and will fix it for good.

**Test plan (required)**

Travis will demonstrate that the code is solid.
Let’s make sure tests pass on both Travis and Circle CI.
Closes https://github.com/facebook/react-native/pull/8576

Differential Revision: D3516652

Pulled By: bestander

fbshipit-source-id: 09bb488517a0ee2b5b6219dfda559aef568bbbc2
This commit is contained in:
David Aurelio 2016-07-05 10:05:40 -07:00 committed by Facebook Github Bot 2
parent ac18025d7c
commit 73f62e588e
1 changed files with 19 additions and 0 deletions

19
rn-cli.config.js Normal file
View File

@ -0,0 +1,19 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
/**
* This cli config is needed for development purposes, e.g. for running
* integration tests during local development or on CI services.
*/
module.exports = {
extraNodeModules: {
'react-native': __dirname,
},
};