re: 5 Tips for better NPM script organization VIEW POST

VIEW FULL DISCUSSION
 

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?

code of conduct - report abuse