silverwind / updates

Flexible npm and poetry dependency update tool
98 stars 8 forks source link

Option to delete modules and reinstall #48

Open silverwind opened 4 years ago

silverwind commented 4 years ago

After a dependency update, it's usually best to wipe node_modules and reinstall. I'm considering adding a command line switch to do just that for node_modules and whatever files yarn v2 uses, if present.

silverwind commented 4 years ago

Some notes:

  1. check for .yarnrc.yml and yarn.lock. if found, delete yarn.lock, .pnp.js, .yarn/cache and run yarn
  2. check for .yarnrc, yarn.lock. if found, delete yarn.lockm node_modules and run yarn.
  3. delete node_modules and package-lock.json and run npm i.