Caught this on a deployment to one of our platforms, even though no changes were made, the file was still read into memory and rewritten. Unfortunately, that triggered this issue: https://github.com/composer/composer/issues/9515 with an empty "scripts": {} key being rewritten to "scripts": []
This doesn't totally fix it but it does prevent a few unnecessary writes and saves the day in that one use-case
Caught this on a deployment to one of our platforms, even though no changes were made, the file was still read into memory and rewritten. Unfortunately, that triggered this issue: https://github.com/composer/composer/issues/9515 with an empty
"scripts": {}
key being rewritten to"scripts": []
This doesn't totally fix it but it does prevent a few unnecessary writes and saves the day in that one use-case