![]() But that's problem of those poorly developed packages, not mine. ![]() Now, it's possible that there are packages that don't really require some peer dependency installed, and therefore thery are installed needlessly. Adding bar as dependency of some-app is completely redundant information. There are no "extra packages you never asked for". If I used package manager without auto installing peer dependencies, I would have to manually update my package.json:īut in both cases node_modules will contain foo and bar. and newer will install everything: foo and bar. Now some-app doesn't directly use bar, so I didn't add it to package.json. There is no user error and there is nothing for npm to fix. Peer dependencies are not optional (you have to specify them as such).
0 Comments
Leave a Reply. |