Ignore TM specs with out-of-tree platform suffix (#42360)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42360

In cases where you merge out-of-tree platforms like react-native-windows with react-native mobile JS files, codegen awareness of the Windows suffix is useful. This helps prevent the creation of generated code for iOS and Android in mixed out-of-tree platform folders.

## Changelog

[Internal]

Reviewed By: mdvacca

Differential Revision: D52873212

fbshipit-source-id: ad6b1471e63d68057f54c79141123fb15f8aab5e
This commit is contained in:
Eric Rozell
2024-01-18 22:52:24 -08:00
committed by Facebook GitHub Bot
parent 08eb985c33
commit 1d89fad824
+6
View File
@@ -85,6 +85,12 @@ function verifyPlatforms(
return;
}
if (name.endsWith('Windows')) {
excludedPlatforms.add('iOS');
excludedPlatforms.add('android');
return;
}
if (name.endsWith('Cxx')) {
cxxOnly = true;
excludedPlatforms.add('iOS');