MCPcopy Create free account
hub / github.com/cometchat/cometchat-uikit-angular / hasComponentFile

Function hasComponentFile

scripts/docs-audit.ts:105–108  ·  view source on GitHub ↗

* Checks if a directory contains a component .ts file matching the directory name.

(dirPath: string, dirName: string)

Source from the content-addressed store, hash-verified

103 * Checks if a directory contains a component .ts file matching the directory name.
104 */
105function 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.

Callers 1

discoverComponentDirsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected