diff --git a/packages/react-native/scripts/codegen/generate-artifacts-executor.js b/packages/react-native/scripts/codegen/generate-artifacts-executor.js index 92434047d5a6a5..c150b1956a648e 100644 --- a/packages/react-native/scripts/codegen/generate-artifacts-executor.js +++ b/packages/react-native/scripts/codegen/generate-artifacts-executor.js @@ -283,11 +283,7 @@ function findLibrariesFromReactNativeConfig(projectRoot) { return []; } - return extractLibrariesFromJSON( - configFile, - configFile.name, - codegenConfigFileDir, - ); + return extractLibrariesFromJSON(configFile, codegenConfigFileDir); }); }