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(repack): keypress events not working after using inquirer #368

Closed
wants to merge 2 commits into from
Closed

Conversation

kerm1it
Copy link
Contributor

@kerm1it kerm1it commented May 26, 2023

Summary

I used repack in my custom cli where it is using inquirer, I find keypress events isn't working.

Finally, I see it in SBoudrias/Inquirer.js#662 and add process.stdin.resume() to bindKeypressInput method to fix it.

@changeset-bot
Copy link

changeset-bot bot commented May 26, 2023

⚠️ No Changeset found

Latest commit: d535507

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@thymikee thymikee requested a review from RafikiTiki May 29, 2023 07:26
@kerm1it
Copy link
Contributor Author

kerm1it commented Jun 27, 2023

any progress ?

@kerm1it kerm1it closed this Jul 3, 2023
@RafikiTiki
Copy link
Member

Hey @kerm1it, sorry for a long time without a response – I somehow missed the notification. I'm unfamiliar with the inquirer library, and I want to make sure that the change you introduced, to make it work together with Repack, isn't causing regressions for people who are not using the inquirer. Did you check that? The issue you linked in the description doesn't provide a reason why this change helps, and additionally, this comment suggests calling the process.stdin.resume() after the inquirer usage and before other keypress listeners – so in your case this could potentially live in the custom CLI you're developing.

@RafikiTiki RafikiTiki reopened this Jul 3, 2023
@kerm1it
Copy link
Contributor Author

kerm1it commented Jul 4, 2023

In my case it works perfect.

So I think we can keep it as it is for stability and reopen it if anyone encounters this problem again.

@jbroma
Copy link
Member

jbroma commented Oct 10, 2023

This doesn't feel like something that should be included in Re.Pack. As @RafikiTiki mentioned, have you tried using process.stdin.resume() after the use of inquirer in your app?

@RafikiTiki
Copy link
Member

We're not using inquirer in any of our projects, and I feel this issue should be addresed in the CLI code rather than in the Repack.

Closing this for now, we might revisit it if there are more issues in the future that are not fixable by the end users.

@RafikiTiki RafikiTiki closed this Dec 18, 2023
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.

3 participants