Files
oh-my-opencode/dist/hooks/rules-injector/project-root-finder.d.ts
T
2026-03-14 04:56:50 +00:00

9 lines
332 B
TypeScript

/**
* Find project root by walking up from startPath.
* Checks for PROJECT_MARKERS (.git, pyproject.toml, package.json, etc.)
*
* @param startPath - Starting path to search from (file or directory)
* @returns Project root path or null if not found
*/
export declare function findProjectRoot(startPath: string): string | null;