Repository navigation
Conversation
Signed-off-by: Rabia <rabiamustafa.saya@gmail.com>
Rabia960
force-pushed
the
fix-dot-folder-package-build
branch
from
December 3, 2026 16:16
4500dfe to
8a02166
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Fixes #60447.
When the React Native repository is checked out inside a hidden directory (for example,
.dot), the root build script and the react-native-codegen build script fail to correctly identify JavaScript and ignored files.This happens because
micromatchis applied to absolute paths, where its default dotfile behavior prevents the patterns from matching as expected.This change matches paths relative to each package's source directory, ensuring JavaScript files are transformed correctly and ignored test files remain excluded.
Changelog:
[INTERNAL] [FIXED] - Fix package builds when the repository is checked out inside a hidden directory.
Test Plan:
corepack yarn jest scripts/build/__tests__/build-test.js --runInBandcorepack yarn jest packages/react-native-codegen/scripts/__tests__/build-test.js --runInBandcorepack yarn jest scripts/build/__tests__/build-test.js packages/react-native-codegen/scripts/__tests__/build-test.js --runInBandcorepack yarn prettier --check scripts/build/build.js scripts/build/__tests__/build-test.js packages/react-native-codegen/scripts/build.js packages/react-native-codegen/scripts/__tests__/build-test.jsgit diff --check.All 4 regression tests passed, and all formatting checks passed.