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