-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
How to request user input during plugin installation? #2521
Comments
Amplifying this, and I'd like to re-enable the use of postinstall prompts as it's a great feature to have with these more feature-full plugins |
Hey @EddyVerbruggen , @jlooper , thanks for pointing this regression. Btw @EddyVerbruggen , such postinstall scripts can cause issues in CI builds, where the terminal is not interactive. I would advise you to add function isInteractive() {
return process.stdout.isTTY && process.stdin.isTTY;
} |
Hey @rosen-vladimirov, thanks a lot for picking this up so quickly, much appreciated! Btw, the firebase plugin saves a json config file for CI builds to pick up, but your suggestion is a great addition to that, will add it! |
@rosen-vladimirov This issue is back with the current CLI (3.1.0). This line uses I've found a way to fix it and will do a PR so postinstall scripts are executed again. |
Hi,
Before {N} 2.5.0 was released nativescript-plugin-firebase was able to use a
postinstall
script that prompted the user about his configuration ("Do you want to use Firebase Messaging? (y/n)"). The prompt code can be found here.When 2.5.0 was released and you installed version 3.9.2 of the plugin the CLI just hanged. So I released 3.9.3 that removed the
postinstall
script, now users must not forget to run it themselves after plugin installation.Was this intended / is it a bug.. I don't know, but what would you currently recommend for me to use to prompt the user during plugin installation?
Thanks!
The text was updated successfully, but these errors were encountered: