validate composer.json before committing