Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepend passed sourceExts to default ones and pass them to metro #21855

Closed

Conversation

elyalvarado
Copy link
Contributor

Fixes react-native start not using passed --sourceExts #21854

Test Plan:

react-native init TestProject
cd TestProject
cp App.js App.e2e.js
# Make a visible change in App.e2e.js
react-native start --sourceExts e2e.js
react-native run-ios
# Check to see that the packager is taking the App.e2e.js file instead of the App.js one

Release Notes:

[CLI] [BUGFIX] [ local-cli/server/runServer.js] - Pass down --sourceExts to metro packager (fixes regression)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 18, 2018
Copy link

@analysis-bot analysis-bot left a comment

Choose a reason for hiding this comment

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

Code analysis results:

  • eslint found some issues.

local-cli/server/runServer.js Outdated Show resolved Hide resolved
local-cli/server/runServer.js Outdated Show resolved Hide resolved
local-cli/server/runServer.js Outdated Show resolved Hide resolved
Fixes react-native start not using passed --sourceExts facebook#21854
@elyalvarado
Copy link
Contributor Author

@grabbou can you please check this? Is a documented feature that is not working with the latest release

@grabbou
Copy link
Contributor

grabbou commented Oct 30, 2018

Thank you for submitting this PR. I'll let @rafeca to take a look at it as he is more familiar with Metro.

Copy link
Contributor

@rafeca rafeca left a comment

Choose a reason for hiding this comment

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

Looks good to me 😃

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Oct 30, 2018
Copy link
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.

rafeca is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

@elyalvarado merged commit ce86080 into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 30, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 30, 2018
grabbou pushed a commit to react-native-community/cli that referenced this pull request Nov 6, 2018
…855)

Summary:
Fixes react-native start not using passed --sourceExts #21854
Pull Request resolved: facebook/react-native#21855

Differential Revision: D12840358

Pulled By: rafeca

fbshipit-source-id: 4ee09341b5128d83274a39d8d01c13749efaa78b
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
…ebook#21855)

Summary:
Fixes react-native start not using passed --sourceExts facebook#21854
Pull Request resolved: facebook#21855

Differential Revision: D12840358

Pulled By: rafeca

fbshipit-source-id: 4ee09341b5128d83274a39d8d01c13749efaa78b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants