Skip to content

Commit 7495e80

Browse files
committed
fix patch-package script
1 parent de164b7 commit 7495e80

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/bare/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"postinstall": "patch-package",
76
"android": "react-native run-android",
87
"build:android": "bun run mkdist && react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist/res",
98
"build:ios": "bun run mkdist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
@@ -40,7 +39,6 @@
4039
"babel-jest": "^29.6.3",
4140
"eslint": "^8.19.0",
4241
"jest": "^29.6.3",
43-
"patch-package": "^8.0.0",
4442
"prettier": "2.8.8",
4543
"react-native-test-app": "^3.10.14",
4644
"react-test-renderer": "18.2.0",

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@
2121
"docs"
2222
],
2323
"scripts": {
24+
"postinstall": "patch-package --patch-dir ./examples/bare/patches",
2425
"lint": "bun run eslint .",
2526
"check-ios": "scripts/swift-format.sh && scripts/swift-lint.sh && scripts/clang-format.sh",
2627
"check-android": "scripts/kotlin-lint.sh",
2728
"check-all": "bun run check-android; bun run check-ios; bun run lint",
2829
"clean": "rm -rf packages/**/tsconfig.tsbuildinfo packages/**/node_modules packages/**/lib examples/**/node_modules examples/**/ios/Pods"
2930
},
31+
"devDependencies": {
32+
"patch-package": "^8.0.0"
33+
},
3034
"trustedDependencies": [
3135
"BareExample",
3236
"ExpoExample",

0 commit comments

Comments
 (0)