Skip to content

How to clear the declarationDir before build #479

@unstoppablecarl

Description

@unstoppablecarl

I have a project https://github.com/unstoppablecarl/pinia-scope setup and working correctly. It generates the ts declarations in a types dir. It does not delete the dir first though. So if type data is removed when a file is deleted or moved it doesn't get updated when rollup runs. I cannot find anything in the documentation of rollup or typescript about this. Is there a way to do it? Seems like it should be doing this by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions