react: Bug: Devtools' update-notifier usage is overly eager
When I run the devtools, I get the update-notifier message:
╭────────────────────────────────────────╮
│ │
│ Update available 4.4.0 → 4.9.0 │
│ Run npm i react-devtools to update │
│ │
╰────────────────────────────────────────╯
I appreciate the goal of this message. However, the suggested command to run is incorrect for my repo. We use yarn, not npm. And we use a monorepo. This is confusing for devs who are new to the repo.
Would it be possible to suppress the update-notifier message? The team that manages usage of react-devtools in our tool chain is happy to stay on top of updates themselves.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (11 by maintainers)
Like I said, I don’t think we need to cover all use case 😄 It’s nice to mention the most common case or two. That looks fine.
Practically speaking, developers in your repo will encounter many libraries that say
npm i somethingin their instructions. So they need to be aware anyway thatnpm i somethingshould be substituted byyarn add somethingin general in your repo. I don’t think this is a critical issue in this case.