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 коммит произвёл facebook-github-bot-8
Родитель 0276dde612
Коммит 2681200ed6
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -35,10 +35,11 @@ var config = {
function getRoots() { function getRoots() {
if (__dirname.match(/node_modules[\/\\]react-native[\/\\]local-cli$/)) { 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, '../../..')]; return [path.resolve(__dirname, '../../..')];
} else if (__dirname.match(/Pods[\/\\]React[\/\\]packager$/)) { } 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, '../../..')]; return [path.resolve(__dirname, '../../..')];
} else { } else {
return [path.resolve(__dirname, '..')]; return [path.resolve(__dirname, '..')];