File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
packages/react-native/scripts/react_native_pods_utils Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ generateCodegenArtifactsFromSchema () {
93
93
popd > /dev/null || exit 1
94
94
}
95
95
96
+ generateArtifacts () {
97
+ describe " Generating codegen artifacts"
98
+ pushd " $RCT_SCRIPT_RN_DIR " > /dev/null || exit 1
99
+ " $NODE_BINARY " " scripts/generate-codegen-artifacts.js" --path " $RCT_SCRIPT_APP_PATH " --outputPath " $RCT_SCRIPT_OUTPUT_DIR " --targetPlatform " ios"
100
+ popd > /dev/null || exit 1
101
+ }
102
+
96
103
moveOutputs () {
97
104
mkdir -p " $RCT_SCRIPT_OUTPUT_DIR "
98
105
@@ -103,21 +110,20 @@ moveOutputs () {
103
110
}
104
111
105
112
withCodegenDiscovery () {
106
- describe " Generating codegen artifacts"
107
- pushd " $RCT_SCRIPT_RN_DIR " > /dev/null || exit 1
108
- " $NODE_BINARY " " scripts/generate-codegen-artifacts.js" --path " $RCT_SCRIPT_APP_PATH " --outputPath " $RCT_SCRIPT_OUTPUT_DIR " --targetPlatform " ios"
109
- popd > /dev/null || exit 1
113
+ find_node
114
+ find_codegen
115
+ generateArtifacts
110
116
}
111
117
112
118
noCodegenDiscovery () {
113
119
setup_dirs
120
+ find_node
121
+ find_codegen
114
122
generateCodegenSchemaFromJavaScript
115
123
generateCodegenArtifactsFromSchema
116
124
moveOutputs
117
125
}
118
126
119
- find_node
120
- find_codegen
121
127
if [ " $RCT_SCRIPT_TYPE " = " withCodegenDiscovery" ]; then
122
128
withCodegenDiscovery " $@ "
123
129
else
You can’t perform that action at this time.
0 commit comments