Cleaning Up composer.json Before a Drupal Upgrade: Dead Modules, Their Dependencies, and Devel in Production
Before upgrading this site to Drupal 11, I spent an afternoon in August making composer.json describe the site that actually exists. Over the years it had collected modules and themes that were no longer installed, and a development module that was being shipped to production. Five small commits fixed that.