Skip to content

Install and use locally in pre-commit #493

Description

@troywweber7

I'm struggling to use zx when installed locally. It seems I have to install it globally if I want to run it directly with ./pre-commit.mjs. Or if I add node_modules/.bin to the path, then it works when I'm at the project root. Under .git/hooks, however, that path change won't stick unless it was an absolute path. What is the best approach to this situation?

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