Skip to content

Avoid Repo Structure Assumptions in RNTester Imports#30141

Closed
NickGerleman wants to merge 1 commit intofacebook:masterfrom
NickGerleman:tester-cross-package-import
Closed

Avoid Repo Structure Assumptions in RNTester Imports#30141
NickGerleman wants to merge 1 commit intofacebook:masterfrom
NickGerleman:tester-cross-package-import

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary

RNTester has some imports left over that operate on directory traversal, assuming it is contained within react-native sources. This change makes these imports relative to react-native, enabling usage outside of the RN repo.

Relates to microsoft/react-native-windows#6210

Changelog

[Internal] [Fixed] - Avoid File Structure Assumptions in RNTester Imports

Test Plan

Validated we can bundle and flow-check both iOS + Android

RNTester has some imports left over that operate on directory traversal, assuming it is contained within react-native sources. This change makes these imports relative to react-native, enabling usage outside of the RN repo.

Relates to microsoft/react-native-windows#6210

Validated we can bundle and flow-check for iOS + Android
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Oct 9, 2020
@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,385,801 0
android hermes armeabi-v7a 7,013,117 0
android hermes x86 7,828,013 0
android hermes x86_64 7,717,499 0
android jsc arm64-v8a 9,532,102 0
android jsc armeabi-v7a 9,147,130 0
android jsc x86 9,396,778 0
android jsc x86_64 9,978,488 0

Base commit: 7ebb71a

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 7ebb71a

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@appden has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @NickGerleman in 4d247fe.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants