Skip to content

Show globally-installed packages in ignite doctor - #1586

Merged
jamonholmgren merged 5 commits into
masterfrom
show-global-packages-in-doctor
Jan 4, 2021
Merged

jamonholmgren merged 5 commits into
masterfrom
show-global-packages-in-doctor

Conversation

@bryanstearns

Copy link
Copy Markdown
Contributor

Please verify the following:

  • yarn ci:test jest tests pass with new tests, if relevant

Describe your PR

@nirre7 had a problem that was caused by an older version of react-native-cli being installed globally (which is no longer recommended); he suggested having Ignite warn when this happens. https://infiniteredcommunity.slack.com/archives/CD8UA5RJ4/p1609336353033800?thread_ts=1609248567.028100&cid=CD8UA5RJ4

I think that's a great idea, and I thought it'd be useful as a preliminary step to see all the globally-installed packages in ignite doctor's output, so that's what this PR adds. Because npm and yarn store global packages in different places, it lists them separately -- the Javascript section of its output now looks like this (I just have one package in each group):

JavaScript (and globally-installed packages)
  node                14.15.1      /Users/stearns/.asdf/installs/nodejs/14.15.1/bin/node
  npm                 6.14.8       /Users/stearns/.asdf/installs/nodejs/14.15.1/bin/npm
    expo-cli          4.0.17
  yarn                1.22.5       /Users/stearns/.yarn/bin/yarn
    create-next-app   10.0.4

@jamonholmgren jamonholmgren left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Tested on my machine and it works, including without Yarn installed.

@jamonholmgren
jamonholmgren merged commit 465f3c1 into master Jan 4, 2021
@jamonholmgren
jamonholmgren deleted the show-global-packages-in-doctor branch January 4, 2021 20:19
jamonholmgren pushed a commit that referenced this pull request Jan 4, 2021
# [6.1.0](v6.0.0...v6.1.0) (2021-01-04)

### Bug Fixes

* **i18n:** Fix grep path in i18n test ([#1589](#1589) by [@leonyjiang](https://github.com/leonyjiang)) ([fd1338e](fd1338e))

### Features

* **cli:** Show globally-installed packages in `ignite doctor` ([#1586](#1586) by [@bryanstearns](https://github.com/bryanstearns)) ([465f3c1](465f3c1))
@infinitered-circleci

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants