Skip to content

Dependencies used inside hook/ must be regular dependencies, not dev_dependencies #159

@goderbauer

Description

@goderbauer

The validator complains that dependencies only used inside a build hook (which is placed inside the top-level hook directory) should be dev_dependnecies (because they are only used outside of lib/). That is not correct as also stated in the documentation for hooks:

You need to add the dependencies under dependencies, not dev_dependencies. The hooks will be run by packages and applications depending on your package, so the Dart code needs to be part of the resolution in those packages.

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