Improves @astrojs/upgrade
dependency handling
#9317
Merged
@astrojs/upgrade
dependency handling
#9317