MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / is_resolution_input

Function is_resolution_input

graphify/detect.py:1038–1045  ·  view source on GitHub ↗

True when ``path`` steers JS/TS module resolution (#4740). Deliberately over-approximate: a false positive only costs a slower run, a false negative ships a stale graph.

(path: "Path | str")

Source from the content-addressed store, hash-verified

1036
1037
1038def is_resolution_input(path: "Path | str") -> bool:
1039 """True when ``path`` steers JS/TS module resolution (#4740).
1040
1041 Deliberately over-approximate: a false positive only costs a slower run, a
1042 false negative ships a stale graph.
1043 """
1044 name = Path(path).name.lower()
1045 return name in _RESOLUTION_INPUT_NAMES or bool(_TS_CONFIG_NAME_RE.match(name))
1046
1047
1048# A bare "snapshots" dir is a Jest/Vitest artifact only when it actually holds

Callers 3

_rebuild_code_innerFunction · 0.90
detectFunction · 0.85
detect_incrementalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected