Skip to content

chore: fix buildTs.js crashing on paths containing spaces #2639

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

wojtekmaj
Copy link
Contributor

Summary

This PR fixes a bug in buildTs.js that caused the script to crash when ran from a directory full path of which contained space(s). I discovered that when I cloned the repository to "Open source projects" directory.

Test Plan

  1. Clone this repository to any directory full path of which contains space(s).
  2. Install the repository.
    2a. Without this PR, build will crash on buildTs.js.
    2b. With this PR, build will succeed.

Checklist

  • Documentation is up to date.
  • Follows commit message convention described in CONTRIBUTING.md.
  • For functional changes, my test plan has linked these CLI changes into a local react-native checkout (instructions).

@thymikee
Copy link
Member

thymikee commented Apr 4, 2025

Thanks! Prettier is failing on that file, mind fixing it?

@wojtekmaj
Copy link
Contributor Author

Fixed! Sorry to keep you waiting, totally forgot about that.

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.

Thank you!

@thymikee thymikee merged commit 8492fde into react-native-community:main May 21, 2025
4 of 8 checks passed
@wojtekmaj wojtekmaj deleted the wmaj/spaces branch May 21, 2025 10:13
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.

2 participants