capacitor
capacitor copied to clipboard
feat: improving message when capacitor is already configured
Feature Request
Description
When npx cap init is run twice by accident, an error is displayed. I believe it might be possible to make the message less technical and easier to understand.
Current behaviour
npx cap init
// ...
npx cap init
[error] Cannot run init for a project using a non-JSON configuration file.
Delete capacitor.config.ts and try again.
Preferred Solution
npx cap init
// ...
npx cap init
Capacitor is already configured using capacitor.config.ts // less strict message
Feature Request
Description
When
npx cap initis run twice by accident, an error is displayed. I believe it might be possible to make the message less technical and easier to understand.Current behaviour
npx cap init // ... npx cap init [error] Cannot run init for a project using a non-JSON configuration file. Delete capacitor.config.ts and try again.Preferred Solution
npx cap init // ... npx cap init Capacitor is already configured using capacitor.config.ts // less strict message
I was concerned about this error message, but this comment was completely usefull. This current behaviour might get confused to new developers, like me. Thank you.