First, create the .hooks
folder in your project. Add the pre-commit
file and grant it executable permission with chmod +x .hooks/pre-commit
Now, let’s open the package.json
file and add the following line to scripts.
Now you can run install for running prepare scripts.