MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isJsFamilyFile

Function isJsFamilyFile

src/resolution/import-resolver.ts:5289–5291  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

5287
5288/** A `.js`/`.ts`-family file, the modules whose default an `export default` statement or the first exported declaration names. */
5289export function isJsFamilyFile(filePath: string): boolean {
5290 return JS_FAMILY_FILE.test(filePath);
5291}
5292
5293/**
5294 * Whether the name of an `imports` reference into a module's own file node is

Callers 1

changedDefaultExportsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected