Fix reinstall from cache cause optionalDependencies being deleted from package-lock.json#5282
Fix reinstall from cache cause optionalDependencies being deleted from package-lock.json#5282Brooooooklyn wants to merge 0 commit intonpm:latestfrom Brooooooklyn:latest
Conversation
|
unfortunately this isn't quite the right approach here, this changed behavior means that we'll always try to install an optional dependency, even if we're asked specifically not to. what we'll have to do is try to write a test that demonstrates the incorrect behavior, then work backwards and figure out why it's happening. i'm working on a related problem with optional peer dependencies that may address this too, when that work is done i'll circle back here and see if anything changes |
That's the right behavior, right? The |
if we're explicitly asked to not install a package, then no this is not the right behavior. consider |
3037d35 to
f3b0c43
Compare
@nlf did you ever circle back to this one? See the related thread. |
package-lock.jsonwhen reinstalling withnode_modulespresent #4828