File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/react-native/scripts/codegen/generate-artifacts-executor Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,10 @@ function readGeneratedAutolinkingOutput(
106106 'build/generated/autolinking/autolinking.json' ,
107107 ) ;
108108 if ( fs . existsSync ( autolinkingGeneratedPath ) ) {
109- /* $FlowFixMe */
109+ // $FlowFixMe[unsupported-syntax]
110110 return require ( autolinkingGeneratedPath ) ;
111111 } else {
112- console . warn (
113- `Could not find generated autolinking output at: ${ autolinkingGeneratedPath } ` ,
114- ) ;
112+ codegenLog ( `Could not find generated autolinking output at: ${ autolinkingGeneratedPath } ` ) ;
115113 return null ;
116114 }
117115}
@@ -125,10 +123,10 @@ function readReactNativeConfig(
125123 if ( autolinkingOutput ) {
126124 return autolinkingOutput ;
127125 } else if ( fs . existsSync ( rnConfigFilePath ) ) {
128- /* $FlowFixMe */
126+ // $FlowFixMe[unsupported-syntax]
129127 return require ( rnConfigFilePath ) ;
130128 } else {
131- console . warn ( `Could not find React Native config at: ${ rnConfigFilePath } ` ) ;
129+ codegenLog ( `Could not find React Native config at: ${ rnConfigFilePath } ` ) ;
132130 return { } ;
133131 }
134132}
You can’t perform that action at this time.
0 commit comments