Skip to content

Allow specification of custom artifact glob in @typechain/hardhat #730

Open
@ckoopmann

Description

@ckoopmann

Currently the glob to match build artifacts for which to generate types is hardcoded here.

While the user can specify additional globs for "externalArtifacts" there is no way to disable type generation for selected contracts/artifacts.
One example where this is a problem is, if the user has multiple contracts with the same name which leads to Duplicate Identifier typescript errors.

Adding an optional config parameter to change the hardcoded glob (with the current pattern as the default) would fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions