We need to automate the process of updating our `Notice.txt` files, which is currently quite tedious.

I was reading up about git hooks, and began to thought about implementing a git hook, that does the following:

1. Look for changes in the `package.json` `dependencies` and `devDependencies`
2. Every time there is a diff in those sections, update the corresponding `Notice.txt` file.

I am unclear how to do this. Has anyone tried to tackle this in the past, or can share a guide or resource to read more about git hooks beyond the general documentation?