Skip to content

Commit a2763b0

Browse files
authored
fix: add publishConfig.executableFiles for yarn pack compatibility (#2918)
1 parent ed2e393 commit a2763b0

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/microsoft-test-react-native-macos-init.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ jobs:
6262
run: |
6363
set -eox pipefail
6464
npm install ${{ runner.temp }}/react-native-macos.tgz
65-
# yarn pack strips execute bits from shell scripts.
66-
# publishConfig.executableFiles could fix this but doesn't support globs.
67-
find node_modules/react-native-macos/scripts -name '*.sh' -exec chmod +x {} +
6865
6966
- name: Apply macOS template
7067
working-directory: ${{ runner.temp }}/testcli

packages/react-native/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@
2727
"react-native": "cli.js",
2828
"react-native-macos": "cli.js"
2929
},
30+
"publishConfig": {
31+
"executableFiles": [
32+
"scripts/find-node-for-xcode.sh",
33+
"scripts/ios-configure-glog.sh",
34+
"scripts/node-binary.sh",
35+
"scripts/packager.sh",
36+
"scripts/react-native-xcode.sh",
37+
"scripts/react_native_pods_utils/script_phases.sh",
38+
"scripts/update-ruby.sh",
39+
"scripts/xcode/ccache-clang.sh",
40+
"scripts/xcode/ccache-clang++.sh",
41+
"scripts/xcode/with-environment.sh",
42+
"sdks/hermes-engine/utils/build-apple-framework.sh",
43+
"sdks/hermes-engine/utils/build-hermes-xcode.sh",
44+
"sdks/hermes-engine/utils/build-hermesc-xcode.sh",
45+
"sdks/hermes-engine/utils/build-ios-framework.sh",
46+
"sdks/hermes-engine/utils/build-mac-framework.sh",
47+
"sdks/hermes-engine/utils/copy-hermes-xcode.sh",
48+
"sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh"
49+
]
50+
},
3051
"main": "./index.js",
3152
"types": "types",
3253
"exports": {

0 commit comments

Comments
 (0)