@metreeca/rack - v0.6.0
    Preparing search index...

    Function customConditions

    • Reads the custom export conditions a project asks its TypeScript language service to resolve.

      Parameters

      • directory: string

        The directory the search for tsconfig.json starts from, walking up through its ancestors

      Returns readonly string[]

      The customConditions of the nearest tsconfig.json, read through its extends chain where it declares none of its own; empty if no configuration is found or none declares any, so that linked packages resolve to dist