cli icon indicating copy to clipboard operation
cli copied to clipboard

Better handle subdirectoried project on `upgrade`

Open bradjones1 opened this issue 2 years ago • 1 comments

Summary:

Fixes https://github.com/react-native-community/cli/issues/1622

Test Plan:

Upgrade a RN project which is in a subdirectory of a repository, and has non-patchable files (e.g., they changed from the prior version's distributed copy.) Upgrade will fail to patch any files. This also adds an environment variable to further exclude files that might have been changed and will be in a dirty state (e.g., after expo upgrade.)

bradjones1 avatar Jun 11 '22 04:06 bradjones1

I apologize I didn't touch the test coverage here... this came about as part of an upgrade on a project I'm cranking on and my Jest is even worse than my TypeScript - which is to say, it's non-existent. Hopefully this is clear enough, though.

bradjones1 avatar Jun 11 '22 04:06 bradjones1

There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.

github-actions[bot] avatar Nov 24 '22 03:11 github-actions[bot]