live-plugin-manager icon indicating copy to clipboard operation
live-plugin-manager copied to clipboard

handle peerDependencies

Open davideicardi opened this issue 4 years ago • 2 comments

If when installing a package we found that there is one or more peerDependencies not available inside staticDependencies throw an error.

From #24 :

Installing peerDependencies automatically would be unexpected for people who are used to NPM/Yarn behavior. From my understanding, it seems like staticDependencies could play well with peerDependencies. For example:

  • package A specifies peer dependency X
  • my project installs & requires package A using live-plugin-manager
  • live-plugin-manager will not install X
  • (new behavior) if my project does not pass X via staticDependencies, live-plugin-manager will error or warn (just my 2 cents)

davideicardi avatar Sep 11 '20 14:09 davideicardi

What about add an option to install peerDependencies?

ylc395 avatar Dec 28 '21 13:12 ylc395

@ylc395 Yes agree, it could be an option.

davideicardi avatar Dec 28 '21 16:12 davideicardi