Npm add peerdependencies6/10/2023 ![]() ![]() Package, even though it does not always directly use the host package. A plugin package is meant to be used with another "host" There's one use case where this falls down, however: plugins. Everyone's code works! The Problem: Plugins This is, generally, great: now some-other-library has its own copy of request v1 that it can use, while not Request version 2 and some-other-library, but some-other-library depends on request version 1, the resultingĭependency graph looks like: ├── In particular, it handles sub-dependencies very well: if my package depends on Reposted from Domenic's blog with permission.
0 Comments
Leave a Reply. |