You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development, I'd like for package.json's peerDependencies to be always automatically installed without adding peerDependencies to devDependencies. This way, peerDependencies is basically equivalent to devDependencies during development; peers could also be saved as devDependencies in the lock file.
However, for installed/consumed packages, I'd like to manually install their peers.
With autoInstallPeers I think only one or the other is possible, but it seems that the behavior of peer dependencies could be handled differently for developed/local and external packages.
This would likely require a new configuration option (like autoInstallPeersDuringDevelopment, but shorter) to also support adding peers with pnpm add --save-peer without saving to devDependencies. In addition, pnpm outdated could also show peers if the option is enabled.
Another alternative is to split the options into: autoinstallDirectPeers and autoinstallTransitivePeers, although I'm not sure if that's accurate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
During development, I'd like for
package.json'speerDependenciesto be always automatically installed without addingpeerDependenciestodevDependencies. This way,peerDependenciesis basically equivalent todevDependenciesduring development; peers could also be saved asdevDependenciesin the lock file.However, for installed/consumed packages, I'd like to manually install their peers.
With
autoInstallPeersI think only one or the other is possible, but it seems that the behavior of peer dependencies could be handled differently for developed/local and external packages.This would likely require a new configuration option (like
autoInstallPeersDuringDevelopment, but shorter) to also support adding peers withpnpm add --save-peerwithout saving todevDependencies. In addition,pnpm outdatedcould also show peers if the option is enabled.Another alternative is to split the options into:
autoinstallDirectPeersandautoinstallTransitivePeers, although I'm not sure if that's accurate.Beta Was this translation helpful? Give feedback.
All reactions