Functions

f
findProjectRoot(): Promise<string>

Walks up parent directories from cwd to find the nearest package.json and returns its directory path.

Usage

import * as mod from "lib/utils/find-project-root.ts";