MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / toWatchDirectory

Function toWatchDirectory

packages/node/src/dev/hotStateReload.ts:238–244  ·  view source on GitHub ↗
(pathLike: string)

Source from the content-addressed store, hash-verified

236}
237
238function toWatchDirectory(pathLike: string): string {
239 try {
240 return statSync(pathLike).isDirectory() ? pathLike : dirname(pathLike);
241 } catch {
242 return dirname(pathLike);
243 }
244}
245
246function findNearestNodeModules(startDir: string): string | null {
247 let current = resolve(startDir);

Callers 1

refreshWatchersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected