fix: warn when onboarding is run outside a Capacitor project#570
fix: warn when onboarding is run outside a Capacitor project#570WcaleNieWolny merged 1 commit intomainfrom
Conversation
- Warn and prompt to exit if no capacitor.config.* is found in the current directory - Warn and prompt if no native platform directories (ios/android) exist, respecting custom paths from capacitor config (ios.path/android.path) - Reword install/import prompts to be clearer - Convert confirm prompts to selects with emoji labels for consistency
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR modifies the initialization command to replace confirmation prompts with choice-based selections for package installation and code injection, and adds preflight validation checks for Capacitor configuration and native platform directories during app initialization. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|



Summary
capacitor.config.*is found in the current directoryios.path/android.pathin capacitor configTest plan
node dist/index.js ifrom a non-Capacitor directory — should warn and offer to exitSummary by CodeRabbit