Skip to content

Commit c8dfe0d

Browse files
committed
Fix flow/test errors and replace output with codegenLog
1 parent b03cefe commit c8dfe0d

File tree

1 file changed

+4
-6
lines changed
  • packages/react-native/scripts/codegen/generate-artifacts-executor

1 file changed

+4
-6
lines changed

packages/react-native/scripts/codegen/generate-artifacts-executor/utils.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)