How to check if npm script exists?
EDIT: As mentioned by Marie and James if you only want to run the command if it exists, npm has an option for that: npm run test –if-present This way you can have a generic script that work with multiple projects (that may or may not have an specific task) without having the risk of … Read more