Function readTsconfig

  • Finds the closest tsconfig.json file and parses it.

    Parameters

    • startingPath: string

    Returns undefined | { path: string; tsconfig: ParsedCommandLine }

    undefined if no tsconfig was found or if a found tsconfig fails to parse.