Use pre and post npm script lifecycle hooks

Elijah Manor
InstructorElijah Manor

Share this video with your friends

Send Tweet

For each npm script there is a pre and post version of the script that will be called if defined. This can be helpful when you want to enforce a validation check before running a script or inject a specific behavior when a script is executed.