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

Function hasComponentFile

scripts/storybook-audit.ts:94–97  ·  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

92 * Checks if a directory contains a component .ts file matching the directory name.
93 */
94function hasComponentFile(dirPath: string, dirName: string): boolean {
95 const componentFile = path.join(dirPath, `${dirName}.component.ts`);
96 return fs.existsSync(componentFile);
97}
98
99/**
100 * Finds the story file for a component directory.

Callers 1

discoverComponentDirsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected