ericclemmons / ericclemmons/if-env

Does it work with husky?

Open
#12 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
98
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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

I am using a package called [post-npm-install](https://github.com/jonathantneal/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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.