Automation of Yarn migration to v2
Update your global yarn to v2 (berry) with error handling and logs. It covers the entire process, from updating npm config files to committing changes and updating the lockfile.
I'm open to improvements
PD: It basically automates (https://yarnpkg.com/getting-started/migration)