Description
The following line is wrong, because glob expects patterns with / separators, even on Windows; but when the codegen is executed on Windows the file will contain \ separators, causing that query not matching anything:
https://github.com/facebook/react-native/blob/ca0d565a3c9729a68f71bb5572c9971a6ce85d2a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js#L25
Changing that line into:
.sync(`${file.replace(/\\/g, '/')}/**/*.{js,ts,tsx}`, {
fixes the issue (well, I verified that codegen then matches expected files there, but it still does not generate expected outputs, so I am still looking for other issues down the line).
React Native Version
0.71.4
Output of npx react-native info
N/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A
Description
The following line is wrong, because
globexpects patterns with/separators, even on Windows; but when the codegen is executed on Windows thefilewill contain\separators, causing that query not matching anything:https://github.com/facebook/react-native/blob/ca0d565a3c9729a68f71bb5572c9971a6ce85d2a/packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js#L25
Changing that line into:
fixes the issue (well, I verified that codegen then matches expected files there, but it still does not generate expected outputs, so I am still looking for other issues down the line).
React Native Version
0.71.4
Output of
npx react-native infoN/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A