More descriptive comment in default.config.js
Reviewed By: foghina Differential Revision: D2575388 fb-gh-sync-id: b28e9ccd7a89409d4d755cfb8d771e5a9e1981b9
This commit is contained in:
Родитель
0276dde612
Коммит
2681200ed6
|
@ -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, '..')];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче