• Attempts to construct an absolute path to a file given a path relative to a package.json. Searches through module.paths (Node's resolution search paths) as described in https://stackoverflow.com/a/18721515/249801, then falls back to using process.cwd() if still not found. Throws an acceptable user-facing error if no file found.

    Parameters

    • relativePath: string

    Returns Promise<string>

Generated using TypeDoc