Resolves #30
When user package.json files are incomplete, such as a missing license field, the npm outdated or yarn outdated command outputs an exit code of 1, with warnings.
This PR reorganizes the upgrade command to be more readable by breaking it into two parts, the outdated and upgrade functions. It also reworks error detection during the process, allowing the auto-install to work when package.json files throw warnings.
Resolves #30 When user package.json files are incomplete, such as a missing license field, the
npm outdated
oryarn outdated
command outputs an exit code of 1, with warnings. This PR reorganizes the upgrade command to be more readable by breaking it into two parts, theoutdated
andupgrade
functions. It also reworks error detection during the process, allowing the auto-install to work when package.json files throw warnings.