1.1.3 • Published 5 years ago
@ozgurg/package-json-refresher v1.1.3
Sometimes you may need to reset everything and reinstall all dependencies. package.json Refresher makes this process easier.
It does the following;
- Delete "node_modules" and "package-lock.json".
- Back up "package.json" in case something goes wrong.
- Deletes and reinstall "dependencies" and "devDependencies".
Note: It does not install previous version of dependencies you use. Installs latest versions from the npm registry. If you have a specific reason to use old version of any dependency, you have been warned.
Install
npm i @ozgurg/package-json-refresher -g
Usage
cd path/to/where/package.json/is
refresh-package-json // or use "rpj"
License
TODO
- Tests will be written.
- Confirm prompt will be added, and will be bypassed with an argument.
- MAYBE An argument to force to install previous version of dependencies instead of latest versions of them.