Today when you upgrade a project it gives you the following commands to upgrade the dependencies.
npm i @microsoft/[email protected] -S --save-exact
npm i @microsoft/[email protected] -S --save-exact
npm i @microsoft/[email protected] -S --save-exact
npm i @microsoft/[email protected] -S --save-exact
npm i @types/[email protected] -S --save-exact
npm i @types/[email protected]
npm i @microsoft/[email protected] -D --save-exact
npm i @microsoft/[email protected] -D --save-exact
npm i @microsoft/[email protected] -D --save-exact
npm i @types/[email protected] -D --save-exact
npm i @types/[email protected] -D --save-exact
npm i [email protected] -S --save-exact
npm i [email protected] -S --save-exact
npm i @types/[email protected] -S --save-exact
npm i @types/[email protected] -S --save-exact
npm uninstall @types/react-addons-shallow-compare -S
npm uninstall @types/react-addons-update -S
npm uninstall @types/react-addons-test-utils -S
This is slow to execute as you need to run these commands one by one, it would be better if it could regroup the commands per attribute with something like:
npm i @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] @types/[email protected] [email protected] [email protected] @types/[email protected] @types/[email protected] -S --save-exact
npm i @types/[email protected]
npm i @microsoft/[email protected] @microsoft/[email protected] @microsoft/[email protected] @types/[email protected] @types/[email protected] -D --save-exact
npm uninstall @types/react-addons-shallow-compare @types/react-addons-update @types/react-addons-test-utils -S
(the only thing that really bugs me in this sample is that Microsoft puts the @types in the deps and not dev deps…)
The categories vary depending on the actions (install, uninstall) but also the target (deps, dev deps) and the attribute (save exact)
It could probably be achieved with a map reduce type approach :)
Today when you upgrade a project it gives you the following commands to upgrade the dependencies.
This is slow to execute as you need to run these commands one by one, it would be better if it could regroup the commands per attribute with something like:
(the only thing that really bugs me in this sample is that Microsoft puts the
@typesin the deps and not dev deps…)The categories vary depending on the actions (install, uninstall) but also the target (deps, dev deps) and the attribute (save exact)
It could probably be achieved with a map reduce type approach :)