diff --git a/package.json b/package.json index 78c5e7a6dbbe..f8000c26198a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "setupNewDotWebForEmulators": "./scripts/setup-newdot-web-emulators.sh", "startAndroidEmulator": "./scripts/start-android.sh", "postinstall": "./scripts/postInstall.sh", - "clean": "npx react-native clean-project-auto", + "clean": "./scripts/clean.sh", "clean-standalone": "./scripts/clean.sh", "android": "./scripts/set-pusher-suffix.sh && ./scripts/run-build.sh --android", "android-standalone": "./scripts/set-pusher-suffix.sh && ./scripts/run-build.sh --android --new-dot", diff --git a/scripts/clean.sh b/scripts/clean.sh index 99cce1e56ad0..1ecd73731b61 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -11,7 +11,7 @@ if [[ "$IS_HYBRID_APP_REPO" == "true" && "$1" != "--new-dot" ]]; then echo -e "${BLUE}Cleaning HybridApp project...${NC}" # Navigate to Mobile-Expensify repository, and clean cd Mobile-Expensify - npm run clean + npm run clean -- "$@" else # Clean NewDot echo -e "${BLUE}Cleaning standalone NewDot project...${NC}"