Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Don't prompt cordova preferences if non interactive #4680

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

jcesarmobile
Copy link
Member

If there is a config.xml present, capacitor CLI will prompt the user if they want to migrate preferences from config.xml to capacitor config file.
In non interactive environments (such as when run inside ionic CLI) it will hang as it can't choose an answer.
So, in cases is a non interactive environment, migrate the preferences without asking.

closes #4678

@jcesarmobile jcesarmobile merged commit 293527c into main Jun 7, 2021
@jcesarmobile jcesarmobile deleted the cordova-tty branch June 7, 2021 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: enable capacitorhangs before prompt to automatically port capacitor.config.json
2 participants