We have both the server and client parts of the project in our project directory.
Structure looks like
project/
|_java_server/
|_react_ui/
|_README.md
|_...
On the project we enabled the git pre-push script with the husky library. The pre-push script runs only package.json scripts in the react_ui folder with linting, testing, etc.
The problem is that the script runs on every push to the server even if only the java_server files were changed.
So question. Can I configure pre-push hook in the way it runs only if files in react_ui/ were changed?