Skip to content

fix: add publishConfig.executableFiles for yarn pack compatibility#2918

Open
Saadnajmi wants to merge 2 commits intomicrosoft:mainfrom
Saadnajmi:fix/executable-files-main
Open

fix: add publishConfig.executableFiles for yarn pack compatibility#2918
Saadnajmi wants to merge 2 commits intomicrosoft:mainfrom
Saadnajmi:fix/executable-files-main

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

  • Adds publishConfig.executableFiles to packages/react-native/package.json listing all shell scripts included in the tarball, so yarn pack / npm publish retains execute permissions.
  • Updates the chmod workaround comment in the CI workflow to reflect that publishConfig.executableFiles is now set.

Test plan

  • Verify yarn pack produces a tarball with correct execute bits on listed .sh files
  • Verify the microsoft-test-react-native-macos-init CI job still passes

🤖 Generated with Claude Code

yarn pack strips execute permissions from shell scripts. Setting
publishConfig.executableFiles ensures the published tarball retains
correct permissions for all .sh files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Saadnajmi Saadnajmi requested a review from a team as a code owner April 14, 2026 20:55
@Saadnajmi Saadnajmi changed the title Add publishConfig.executableFiles for yarn pack compatibility fix: add publishConfig.executableFiles for yarn pack compatibility Apr 15, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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