if-env icon indicating copy to clipboard operation
if-env copied to clipboard

Does it work with husky?

Open arunmmanoharan opened this issue 6 years ago • 1 comments

HI, I would like to implement this module in husky.

I am using a package called post-npm-install to automatically update dependencies on merge or rebase. I do not want to do it in PROD environment. This is what I have done.

"husky": { "hooks": { "pre-commit": "lint-staged", "post-merge": "if-env NODE_ENV != 'production' && post-npm-install", "post-rebase": "if-env NODE_ENV != 'production' && post-npm-install" } },

This doesnt work. Should I do something to make this work? Please advice.

arunmmanoharan avatar May 23 '19 16:05 arunmmanoharan

I'm also interested in it... does it support != at all?

t0lkman avatar Apr 28 '20 20:04 t0lkman