MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / shouldWatchProjectFile

Function shouldWatchProjectFile

packages/cli/src/server/fileWatcher.ts:26–30  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

24const DEBOUNCE_MS = 300;
25
26export function shouldWatchProjectFile(filename: string): boolean {
27 if (!filename) return false;
28 const parts = filename.split(/[\\/]+/);
29 return !parts.some((part) => WATCHER_EXCLUDED_DIRS.has(part));
30}
31
32export function createProjectWatcher(projectDir: string): ProjectWatcher {
33 const listeners = new Set<FileChangeListener>();

Callers 2

createProjectWatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected