git-validate
git-validate copied to clipboard
`process.env.npm_lifecycle_event` doesn't get set when running through a hook
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: https://github.com/sturdynut/git-prepush-hook/issues/1
I'd be happy to help fix, but just not sure how.
interesting.. i'll take a look and see what's going on
Any luck? Anything I can do to help?
@nlf - Did you ever have a chance to take a look at this? Anyway to set process.env.npm_lifecycle_event in hooks if it is undefined?