When importing a dependency which is not installed, webstorm recognizes this and asks whether it should install it. Is there a way to make webstorm add it to the package.json file instead?
If the module is installed, but not listed as a dependency/devDependency in package.json, WebStorm suggests adding it:
If the module is not installed, the only available options are installing it as either a dependency or devDependency. Both actions update the package.json accordingly (installing without updating package.json is not supported)
If the module is installed, but not listed as a dependency/devDependency in package.json, WebStorm suggests adding it:
If the module is not installed, the only available options are installing it as either a dependency or devDependency. Both actions update the package.json accordingly (installing without updating package.json is not supported)