Skip to content

fix: open feedback form on preuninstall #4983

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

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Aug 27, 2019

Currently the when the preuninstall step executes CLI's command, it exec's the process without inheriting the stdout. This way CLI always thinks the terminal is not interactive and never opens the feedback form.

Replace the exec with spawn and set "inherit" for stdout. This way CLI will determine if the terminal is in interactive mode correctly.

PR Checklist

What is the current behavior?

CLI never opens the required uninstall feedback form.

What is the new behavior?

When npm uninstall -g nativescript is executed, CLI will open the feedback form.

Fixes issue #4974

Currently the when the preuninstall step executes CLI's command, it exec's the process without inheriting the stdout. This way CLI always thinks the terminal is not interactive and never opens the feedback form.

Replace the exec with spawn and set "inherit" for stdout. This way CLI will determine if the terminal is in interactive mode correctly.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-uninstall-form branch from b218580 to bf617da Compare August 27, 2019 18:30
@rosen-vladimirov rosen-vladimirov merged commit 648fda6 into master Aug 27, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-uninstall-form branch August 27, 2019 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants