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

fix: replace launchPackager.sh with launchPackager.command #1895

Conversation

szymonrybczak
Copy link
Collaborator

@szymonrybczak szymonrybczak commented Mar 29, 2023

Summary:

This PR replaces launchPackager.sh with launchPackager.command, we though that we can use launchPackager.sh, but actually it doesn't work. Because in same cases when we ran open -a Terminal.app /path/to/launchPackager.sh it doesn't opens the Terminal.app with the script but the Code Editor with this file.

Test Plan:

  1. Clone the repository and do all the required steps from the Contributing guide
  2. Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js run-android

Metro bundler should be opened in right place in new terminal window.

@szymonrybczak szymonrybczak force-pushed the fix/add-missing-launchPackager branch from 0fa8b0e to 8a61207 Compare March 29, 2023 14:36
@szymonrybczak szymonrybczak marked this pull request as ready for review March 30, 2023 07:25
@szymonrybczak
Copy link
Collaborator Author

Hey @tido64 @huntie, I'm adding missing file (which is mandatory), could you please look at this PR? 🙏

@szymonrybczak szymonrybczak force-pushed the fix/add-missing-launchPackager branch from 8a61207 to 67b8585 Compare March 30, 2023 08:01
@szymonrybczak szymonrybczak changed the title fix: add missing launchPackager.command fix: replace launchPackager.sh with launchPackager.command Mar 30, 2023
@tido64
Copy link
Contributor

tido64 commented Mar 30, 2023

Hey @tido64 @huntie, I'm adding missing file (which is mandatory), could you please look at this PR? 🙏

I'm out and about, but had a quick look. Not sure I understand the issue. Is this because someone set up associations to open .sh files in an editor instead of running them? Instead of introducing a third file, can we just rename the .sh file to .command? Nvm, it looks like you did rename it. I'll have another look once I get back to a computer. lol, the mobile client doesn't do live refresh

@szymonrybczak
Copy link
Collaborator Author

Yeah, you're right. Fixed ✅

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Alright

@thymikee thymikee merged commit 371de7b into react-native-community:main Mar 30, 2023
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