We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f008a4 commit ad9fb3bCopy full SHA for ad9fb3b
1 file changed
packages/react-native-node-api-modules/src/node/path-utils.ts
@@ -247,6 +247,13 @@ export function findNodeApiModulePaths(
247
return [];
248
}
249
const candidatePath = path.join(fromPath, suffix);
250
+ // Normalize path separators for consistent pattern matching on all platforms
251
+ const normalizedSuffix = suffix.split(path.sep).join('/');
252
+
253
+ if (excludePatterns.some((pattern) => pattern.test(normalizedSuffix))) {
254
+ return [];
255
+ }
256
257
return fs
258
.readdirSync(candidatePath, { withFileTypes: true })
259
.flatMap((file) => {
0 commit comments