I'd like to implement a husky rule so as to make it run yarn build and make sure that what's going to be pushed won't break the app.
I've browsed the web, but still not sure if the following is the correct way to do it?
"husky": {
"hooks": {
"pre-commit": "cross-env lint-staged",
"pre-push": "cross-env lint-staged yarn build"
}
},