diff --git a/packages/react-native/scripts/codegen/generate-artifacts-executor.js b/packages/react-native/scripts/codegen/generate-artifacts-executor.js index 482436f3a1a..de9ca6ae020 100644 --- a/packages/react-native/scripts/codegen/generate-artifacts-executor.js +++ b/packages/react-native/scripts/codegen/generate-artifacts-executor.js @@ -833,8 +833,11 @@ function findFilesWithExtension(filePath, extension) { return null; } - // Skip hidden folders, that starts with `.` - if (absolutePath.includes(`${path.sep}.`)) { + // Skip hidden folders, that starts with `.` but allow `.pnpm` + if ( + absolutePath.includes(`${path.sep}.`) && + !absolutePath.includes(`${path.sep}.pnpm`) + ) { return null; }