From 73f62e588e643a62e7522766bf85772cea4dd8ab Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 5 Jul 2016 10:05:40 -0700 Subject: [PATCH] =?UTF-8?q?Add=20a=20local=20packager=20config,=20so=20tha?= =?UTF-8?q?t=20react=20can=20find=20react-native=20when=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: The **motivation** for this PR is my sad colleague bestander: I managed to break travis with bd60d828c5fc9cb066e5f647c87ecd6f70cb63a5, 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 --- rn-cli.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rn-cli.config.js diff --git a/rn-cli.config.js b/rn-cli.config.js new file mode 100644 index 00000000000..a03254b8bfd --- /dev/null +++ b/rn-cli.config.js @@ -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, + }, +};