Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sturdynut opened this issue Nov 10, 2015 · 3 comments
Labels

Comments

@sturdynut
Copy link

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.

@nlf
Copy link
Owner

nlf commented Nov 11, 2015

interesting.. i'll take a look and see what's going on

@bebraw
Copy link

bebraw commented Jan 21, 2016

Any luck? Anything I can do to help?

@nlf nlf added the bug label Oct 7, 2016
@sturdynut
Copy link
Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants