Skip to content

Make pre-commit compatible with pnpm #121

@etamponi

Description

@etamponi

Hello :)

Lately I am contributing a lot to pnpm which is an alternative package manager for Node with tons of interesting features (and it's also very fast).

One of its peculiarity is the node_modules structure it creates. Unfortunately, pre-commit expects node_modules to be handled by npm, so it calculates the root variable in install.js as just __dirname + '/../..'.

Would it be possible to replace this logic with another one that is compatible with pnpm?

For example: root might be the first directory up the tree in which there is a package.json file.

Thanks in advance!

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