This extension makes it easy to add npm dependency packages in a monorepo where it is required all package dependencies have the exact same versions.
The extension works by scanning all package.json files in the workspace folder and storing the versions of all existing dependency packages.
Add package command
Open a package.json file in the editor.
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette.
Select the Dependency Copilot: Add Package command.
Select the package and dependency kind from the quick pick panel.
Reset package cache command
For performance reason, the extension scans the package.json files only once when it is activated. If there are major changes to the content of those files, you can execute the Dependency Copilot: Reset Package Cache to tell the extension to re-scan the files.
In order to work correctly, the extension requires that all existing package dependencies have the same versions across the codebase.
Minor bug fixes
After adding the package, also put cursor at the end of the inserted line correctly.