Set overmind as peerDependency in overmind-react and other packages
See original GitHub issueBecause we cannot use overmind-react
without overmind
, we can set overmind
as peerDependency
in overmind-react
and other same packages (overmind-angular
, overmind-vue
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
npm Peer Dependencies - JavaScript inDepth
Your project relies on packages from the npm Registry. ... When my package depends on another package, should I put it in dependencies...
Read more >Peer Dependency Not Hoisting Along With Other Package
when I try to install the missing dependency it fails on some other missing dependency causing a sad circle of fail. > yarn...
Read more >Should I duplicate "peerDependencies" in "dependencies ...
So while installing packages using npm install , NPM will attempt to install an optional dependency too. But if it isn't able to...
Read more >Peer Dependencies | Node.js
The Problem: Plugins. There's one use case where this falls down, however: plugins. A plugin package is meant to be used with another...
Read more >Understanding Peer Dependencies in JavaScript
Peer dependencies really come into play when you're developing code that will be used by others, such as plugins and packages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not problematic in most cases, it’s just the way it’s usually done in npm.
The only problem I see is a possible conflict in the case somebody wants to use a fork/alternative to the main
overmind
package (for a bug fix or added feature which is not in the official one). They would end up with anovermind@next
fromovermind-react
and their ownovermind
version installed from GitHub or with a different name. They can solve it forkingovermind-react
as well so it’s not a big deal.I was about to open this issue as well. With a peer dependency the user can choose what overmind version to install. It may not be
overmind: next
like it is “hardcoded” right now.Also, I don’t see a problem with
npm install overmind overmind-react
because it’s already a common pattern with many other tools: react and react-dom, mobx and mobx-react, redux and react-redux and so on…