Class PackageEntryPoint

Information on package entry point.

Hierarchy

Constructors

Accessors

Methods

  • Searches for path or pattern matching all provided conditions.

    Parameters

    • Rest ...conditions: string[]

      Required export conditions. When missing, searches for default one.

    Returns undefined | `./${string}`

    Matching path or pattern, or undefined when not found.

  • Searches for exported JavaScript file to import into another module matching all provided condition.

    Target selection depends on consumer's package type.

    Parameters

    • type: undefined | null | "module" | "commonjs"

      Consumer package type.

    • Rest ...conditions: string[]

      Additional export conditions.

    Returns undefined | `./${string}`

    Matching JavaScript file path, or undefined when not found.

Generated using TypeDoc