observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

Add environment variable #136

Open mlucool opened 6 years ago

mlucool commented 6 years ago

Some scripts (e.g. ones that may want user input, such as autofix) need to know if this is running via pre-commit or running npm run myscript directly. Are you ok with setting an environment variable that is passed on from this script? If so, any suggestions on a name?