@wpazderski/js-utils
    Preparing search index...

    Utility class for working with TypeScript configuration files (tsconfig.json).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Extracts import aliases from a TypeScript configuration file (tsconfig.json). Trailing "/*" in the alias and path is removed.

      Parameters

      • tsConfigFileDir: string

        The directory containing the tsconfig.json file.

      • tsConfigFileName: string = "tsconfig.json"

        The name of the tsconfig.json file. Defaults to "tsconfig.json".

      Returns Record<string, string>

      An object mapping import aliases to their resolved paths.