Skip to content

Fix package builds under dot-prefixed directories - #60472

Open
7drien wants to merge 1 commit into
react:mainfrom
7drien:fix/build-dot-prefixed-checkout
Open

7drien wants to merge 1 commit into
react:mainfrom
7drien:fix/build-dot-prefixed-checkout

Conversation

@7drien

@7drien 7drien commented Dec 2, 2026

Copy link
Copy Markdown

Summary:

Codegen and the monorepo build match compile and ignore globs against absolute paths. If a parent directory starts with a dot, those globs can miss every file, causing the build to copy raw Flow source and test files into its output.

Match both globs against paths relative to the package or workspace packages directory, normalized to forward slashes. Keep using absolute paths for filesystem operations.

Fixes #60447.

Changelog:

[INTERNAL] [FIXED] - Fix JavaScript package builds in checkouts under dot-prefixed directories.

Test Plan:

Ran yarn --cwd packages/react-native-codegen build and yarn build before and after the patch in a clean Linux worktree under a dot-prefixed parent directory. Ran yarn clean before rebuilding the patched monorepo.

  • Before the patch, node --check packages/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js failed with SyntaxError: Missing initializer in const declaration, and packages/community-cli-plugin/dist/commands/bundle/__mocks__/sign.js was present.
  • After the patch, both builds passed, the Codegen CLI passed the same syntax check, and the test mock was absent.
  • Prettier and ESLint passed for both changed scripts. The build verification ran on Linux.

@meta-cla

meta-cla Bot commented Dec 2, 2026

Copy link
Copy Markdown

Hi @7drien!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla

meta-cla Bot commented Dec 2, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla 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 Dec 2, 2026
@meta-cla

meta-cla Bot commented Dec 2, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package builds copy Flow sources into lib/ and dist/ untransformed when the checkout sits below a dot-folder

1 participant