* Checks if a directory contains a component .ts file matching the directory name.
(dirPath: string, dirName: string)
| 103 | * Checks if a directory contains a component .ts file matching the directory name. |
| 104 | */ |
| 105 | function hasComponentFile(dirPath: string, dirName: string): boolean { |
| 106 | const componentFile = path.join(dirPath, `${dirName}.component.ts`); |
| 107 | return fs.existsSync(componentFile); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Finds the MDX doc file for a component. |
no outgoing calls
no test coverage detected