More descriptive comment in default.config.js

Reviewed By: foghina

Differential Revision: D2575388

fb-gh-sync-id: b28e9ccd7a89409d4d755cfb8d771e5a9e1981b9
This commit is contained in:
Martin Konicek 2015-11-12 07:35:32 -08:00 committed by facebook-github-bot-8
parent 0276dde612
commit 2681200ed6
1 changed files with 3 additions and 2 deletions

View File

@ -35,10 +35,11 @@ var config = {
function getRoots() {
if (__dirname.match(/node_modules[\/\\]react-native[\/\\]local-cli$/)) {
// packager is running from node_modules of another project
// Packager is running from node_modules.
// This is the default case for all projects created using 'react-native init'.
return [path.resolve(__dirname, '../../..')];
} else if (__dirname.match(/Pods[\/\\]React[\/\\]packager$/)) {
// packager is running from node_modules of another project
// React Native was installed using CocoaPods.
return [path.resolve(__dirname, '../../..')];
} else {
return [path.resolve(__dirname, '..')];