auto-install icon indicating copy to clipboard operation
auto-install copied to clipboard

Don't uninstall required peer dependencies

Open innerspirit opened this issue 8 years ago • 1 comments

auto-install will sometimes remove dependencies that shouldn't be removed.

For example, I require()d @r/api-client, which in turn has a peer dependency on superagent. It doesn't get installed automatically, so I install it manually, otherwise I can't use @r/api-client.

In this case, auto-install will think I'm not using superagent (I'm not, but @r/api-client is), and will remove it.

innerspirit avatar Feb 10 '17 16:02 innerspirit

Do you add this to peerDependencies in package.json?

Can blacklist those

siddharthkp avatar Feb 11 '17 06:02 siddharthkp