Skip to content

How to determine if in dryRun from plugin code #3601

@pbrisbin

Description

@pbrisbin

I'm working on a plugin in which I want to do something conditionally in the verify step, iff we're in dryRun.

Based on the types definition, it looks like Options has the dryRun attribute I'd need. And based on the implementation of run, it looks like the context passed to verify has an options attribute. However, none of the context interfaces define that options attribute, which I assume is why my editor doesn't like me trying to use it in type script...

Do I have all that right? Is that a bug in the type definition? Or an intentional omission in the public API? What is the recommended way for a plugin to know if it's being executed in dryRun mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions