Don’t forget pre and post hooks in your package.json!
TBH, I personally don't use them. Most of the time when I remember that they exist and I "refactor" my scripts into using hooks, the package.json feels bloated afterwards (especially if the hooks just call other npm scripts).
If I see them in other projects, I sometimes like how they're used though.
Maybe you can give some pro / cons, why to use them?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.