You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@brettz9 Hi! Sorry for the late reply, but with the more recent changes this is now possible.
You can configure it using arrays like this:
{
"src": ["npm test", "npm run build", "npm run check-readme"],
"test": ["npm test", "npm run create-readme"],
}
The whole hook would fail if any of the commands return a non-zero exit code and would stop further execution.
The commands would be run in order, but only once regardless of how many file patterns matched which caused them to run.
If you change both src and test in one Git operation, run-if-changed would run:
This request can probably be best explained with an example.
...I don't want to re-run
test
if bothsrc
andtest
files are modified.Is there a way it could be recognized such that
npm test
wouldn't need to be repeated?The text was updated successfully, but these errors were encountered: