Skip to content

Commit 9431e59

Browse files
authored
fix(bun): use npx for react-native-builder-bob in prepare script (#47)
* 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 * fix: exclude test files from build and use npx for bob - Use npx react-native-builder-bob in prepare script so it works when installed as a dependency (bob is a devDependency) - Exclude __tests__ directories from tsconfig.build.json Fixes #38
1 parent 58df7da commit 9431e59

2 files changed

Lines changed: 2 additions & 2 deletions

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",

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "./tsconfig",
3-
"exclude": ["example", "expo-example", "lib"]
3+
"exclude": ["example", "expo-example", "lib", "**/__tests__"]
44
}

0 commit comments

Comments
 (0)