NPM Package Updater automatically checks for either the most up-to-date latest version of each dependency in your package.json
file, or the latest minor or patch versions (both dependencies and devDependencies).
When you run the extension it will check if you'd like to create a backup of your package.json
file. If you use git or another version control system you shouldn't need this.
Be sure to reinstall your packages once complete by running npm install
or yarn install
in your terminal.
The following commands can be accessed from the VSCode Command Palette.
Run this command to get the most up-to-date version of all your packages.
Shortcuts:
- Windows/Linux: ctrl+alt+u
- macOS: ctrl+option+u
Run this command to get the most up-to-date minor and patch versions of all of your packages.
Shortcuts:
- Windows/Linux: ctrl+alt+m
- macOS: ctrl+option+m
Run this command to get the most up-to-date patch (non-breaking) versions of all of your packages.
Shortcuts:
- Windows/Linux: ctrl+alt+p
- macOS: ctrl+option+p
This extension allows for customisable indentation types of your package.json. Whether you prefer tabs or spaces it's your decision 😉 Look for the Npm Package Updater: Indentation Size
& Npm Package Updater: Indentation Type
settings.
Update the registry used for fetching package details. You can use a registry different to the standard NPM one (which is set by default). For example if you're working for an organisation that has it's own registry. Look for the Npm Package Updater: Registry
setting.