Retrieves the root folder of the project.
Import:
import { getRootFolder } from '@mnaoumov/typescript-dev-toolkit/root';
Signature:
function getRootFolder(cwd: string | undefined): string | null
Parameters:
| Parameter |
Type |
Description |
cwd |
string | undefined |
The current working folder to resolve from. |
Returns: string | null — The path to the root folder.