Skip to content

process.env.npm_lifecycle_event doesn't get set when running through a hook #39

@sturdynut

Description

@sturdynut

I created a simple repo that uses git-validate to add pre-push hooks to your package.json. It was brought to my attention that the npm_lifecycle_event is not set when running through a hook. I wanted to bring it up here to see if you've ran into this and what your thoughts are on fixing.

Here's the link to the original issue in my repo:
sturdynut/git-prepush-hook#1

I'd be happy to help fix, but just not sure how.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions