Synchronous variant of findNearestProjectFiles. Blocks the JS thread
for the duration of the walk (typically a few microseconds with early-exit
on a warm filesystem). Recommended for startup-time configuration.
Parameters
startPath: string
Starting path — may be a file or a directory.
OptionalstopPath: string
Optional directory — if the walker reaches this path (or any
strict ancestor of it), the walk stops without probing.
Synchronous variant of findNearestProjectFiles. Blocks the JS thread for the duration of the walk (typically a few microseconds with early-exit on a warm filesystem). Recommended for startup-time configuration.