mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Extract RNCORE_CONFIG in a separate variable
Summary: This change refactor the RNCORE_CONFIGS in a separate variable to simplify reuse. ## Changelog: [Internal] - Refactor code Reviewed By: dmytrorykun Differential Revision: D54308346 fbshipit-source-id: b9d7c8e0a9b4042f2ab1adeb7aae875264d22499
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6a1509f318
commit
77cbe6d76d
@@ -34,18 +34,19 @@ const REACT_NATIVE_REPOSITORY_ROOT = path.join(
|
||||
);
|
||||
const REACT_NATIVE_PACKAGE_ROOT_FOLDER = path.join(__dirname, '..', '..');
|
||||
const CODEGEN_REPO_PATH = `${REACT_NATIVE_REPOSITORY_ROOT}/packages/react-native-codegen`;
|
||||
const RNCORE_CONFIGS = {
|
||||
ios: path.join(REACT_NATIVE_PACKAGE_ROOT_FOLDER, 'ReactCommon'),
|
||||
android: path.join(
|
||||
REACT_NATIVE_PACKAGE_ROOT_FOLDER,
|
||||
'ReactAndroid',
|
||||
'build',
|
||||
'generated',
|
||||
'source',
|
||||
'codegen',
|
||||
),
|
||||
};
|
||||
const CORE_LIBRARIES_WITH_OUTPUT_FOLDER = {
|
||||
rncore: {
|
||||
ios: path.join(REACT_NATIVE_PACKAGE_ROOT_FOLDER, 'ReactCommon'),
|
||||
android: path.join(
|
||||
REACT_NATIVE_PACKAGE_ROOT_FOLDER,
|
||||
'ReactAndroid',
|
||||
'build',
|
||||
'generated',
|
||||
'source',
|
||||
'codegen',
|
||||
),
|
||||
},
|
||||
rncore: RNCORE_CONFIGS,
|
||||
FBReactNativeSpec: {
|
||||
ios: null,
|
||||
android: path.join(
|
||||
|
||||
Reference in New Issue
Block a user