Skip to content

fix: pass projectRoot path to doctors fixers#1669

Closed
adamTrz wants to merge 2 commits intoreact-native-community:mainfrom
adamTrz:fix/pass-project-root-path-to-doctor-fixers
Closed

fix: pass projectRoot path to doctors fixers#1669
adamTrz wants to merge 2 commits intoreact-native-community:mainfrom
adamTrz:fix/pass-project-root-path-to-doctor-fixers

Conversation

@adamTrz
Copy link
Collaborator

@adamTrz adamTrz commented Aug 4, 2022

Summary:

Pass projectRoot as an argument both to doctor's getDiagnostics and runAutomaticFix methods.

Fixes: #1588

Test Plan:

doctor should still work.

@adamTrz
Copy link
Collaborator Author

adamTrz commented Aug 18, 2022

Just had a thought that this PR will add additional complexity instead of simplify things in the code and is a bit artificial. Let's leave things as is, and if any doctor command will require projectRoot it will just fetch it like it was done before.
Closing the PR. ✌️

@adamTrz adamTrz closed this Aug 18, 2022
@adamTrz adamTrz deleted the fix/pass-project-root-path-to-doctor-fixers branch August 18, 2022 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doctor: refactor the fixers so we can forward options and avoid duplicating efforts

1 participant