Skip to content

Commit d332183

Browse files
committed
Fix codegen trying to parse .d.ts files
1 parent 4eec473 commit d332183

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ function filterJSFile(file: string) {
2727
// NativeSampleTurboModule is for demo purpose. It should be added manually to the
2828
// app for now.
2929
!file.endsWith('NativeSampleTurboModule.js') &&
30-
!file.includes('__tests')
30+
!file.includes('__tests') &&
31+
// Ignore TypeScript type declaration files.
32+
!file.endsWith('.d.ts')
3133
);
3234
}
3335

0 commit comments

Comments
 (0)