Skip to content

Commit 69bf30b

Browse files
authored
fix: stricter files array in react-native's package.json
See https://github.com/microsoft/react-native-macos/pull/2839/changes#r2850281910 `npm publish`, when reading this package.json will treat dirs in the files array as a recursive glob, while `yarn npm publish` (which react-native-macos uses) will not. However, explicitly adding the glob is compatible with both.
1 parent 5f861ce commit 69bf30b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/react-native/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
"rn-get-polyfills.js",
106106
"scripts/replace-rncore-version.js",
107107
"scripts/bundle.js",
108-
"scripts/cocoapods",
109-
"scripts/codegen",
108+
"scripts/cocoapods/**",
109+
"scripts/codegen/**",
110110
"scripts/compose-source-maps.js",
111111
"scripts/find-node-for-xcode.sh",
112112
"scripts/generate-codegen-artifacts.js",
@@ -129,7 +129,7 @@
129129
"scripts/xcode/with-environment.sh",
130130
"sdks/.hermesversion",
131131
"sdks/.hermesv1version",
132-
"sdks/hermes-engine",
132+
"sdks/hermes-engine/**",
133133
"sdks/hermesc",
134134
"settings.gradle.kts",
135135
"src",

0 commit comments

Comments
 (0)