I require a dependency on my local environment. I add it's service provider and all is fine. The composer.json has this script
"pre-update-cmd": [
"php artisan clear-compiled"
],
When I push the changes to production, I try to run composer update but because of that script artisan fails with an error since the dependency is not yet installed and therefore the service provider I added in config/app.php is not there yet.
What is the best approach to situations like this? Just remove the pre-update script?