npm shrinkwrap issue with peer and dev dependencies

(otakustay) #1

I have a CLI package which is npm shrinkwraped, this has a foo package as peerDependency. For unit testing reason, foo also is a devDependecy.

In this case, when I run npm shrinkwrap, foo is locked a specific version and written into npm-shrinkwrap.json, when the user installed this package, its own foo package is ignored, foo is installed under node_modules/my-package/node_modules/foo instead of node_modules/foo, and itโ€™s version is locked

Is there any solution to solve this?

(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.