Type Alias ProcessedConfig

    Contains the processed config and associated data. This is internal data for an execution of esm-d-ts and is relevant for esm-d-ts plugin authors.

    type ProcessedConfig = {
        compileFilepaths: string[];
        compilerOptions: CompilerOptions;
        dtsDirectoryPath: string;
        dtsEntryPath: string;
        generateConfig: GenerateConfig;
        inputRelativeDir: string;
        isTSMode: boolean;
        lexerFilepaths: string[];
        localPackageImports: Map<string, string>;
        packageObj: PackageJson;
        packages: Map<string, string>;
        tsFilepaths: string[];
    }
    Index

    Properties

    compileFilepaths: string[]

    A list of all file paths to compile.

    compilerOptions: CompilerOptions

    TS compiler options.

    dtsDirectoryPath: string

    The directory path for intermediate TS declarations generated.

    dtsEntryPath: string

    The entry point path for intermediate TS declarations generated.

    generateConfig: GenerateConfig

    The original generate generateConfig w/ default data.

    inputRelativeDir: string

    Relative directory of common project files path.

    isTSMode: boolean

    Indicates if the Typescript mode / processing is enabled. This is true when the entry point is a Typescript file.

    lexerFilepaths: string[]

    The lexically parsed original file paths connected with the entry point.

    localPackageImports: Map<string, string>

    Contains local files referenced by package.json imports field.

    packageObj: PackageJson

    Closest package.json object from input source file.

    packages: Map<string, string>

    Top level packages exported from entry point. Key is the identifier in source code / may be an imports alias / value is the actual package identifier.

    tsFilepaths: string[]

    When processing an ESM entry point this contains a list of all TS files to add synthetic exports.