Find the project root by looking for .git directory.
Walks up the directory tree from startPath (or cwd) looking for a .git directory, which indicates the project root.
findProjectRoot(startPath: string): string | null| Name | Type | Description |
|---|---|---|
startPath | string | Directory to start searching from. Defaults to current working directory. |