Skip to content

Commit b10c263

Browse files
authored
Fix yarn format:apple script (#3500)
## Description For some reason running `yarn format:apple` was working fine, even though running `apple/ -iname *.h` resulted in an error. This confusing behavior seems to be fixed in `yarn 4`, so now trying to run this script results in error: ``` No matches found: "*.h" ``` This PR fixes this error. ## Test plan Run `yarn format:apple`
1 parent 8b717ae commit b10c263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ts-check": "yarn tsc --noEmit",
1212
"format:js": "prettier --write --list-different './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
1313
"format:android": "node ./scripts/format-android.js",
14-
"format:apple": "find apple/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i",
14+
"format:apple": "find apple/ -iname '*.h' -o -iname '*.m' -o -iname '*.cpp' -o -iname '*.mm' | xargs clang-format -i",
1515
"lint:js": "eslint --ext '.js,.ts,.tsx' src/ example/src FabricExample/src MacOSExample/src && yarn prettier --check './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
1616
"lint:js-root": "eslint --ext '.js,.ts,.tsx' src/ && yarn prettier --check './src/**/*.{js,jsx,ts,tsx}'",
1717
"lint:android": "./android/gradlew -p android spotlessCheck -q",

0 commit comments

Comments
 (0)