Skip to content

Commit 53c6290

Browse files
committed
fix(bun): use npx for react-native-builder-bob in prepare script
Bun blocks lifecycle scripts by default for security. When users add the package to trustedDependencies, the prepare script runs but bob is not available since it's a devDependency. Using npx downloads bob on-demand. Fixes #38
1 parent 58df7da commit 53c6290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"typecheck": "tsc",
3939
"lint": "eslint \"**/*.{js,ts,tsx}\"",
4040
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
41-
"prepare": "bob build",
41+
"prepare": "npx react-native-builder-bob@^0.40.0 build",
4242
"nitrogen": "nitrogen",
4343
"release": "release-it",
4444
"dev:ios": "cd example && xed ios",

0 commit comments

Comments
 (0)