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

@inquirer/prompts fails in postinstall hook #11077

Open
yus-ham opened this issue May 14, 2024 · 0 comments
Open

@inquirer/prompts fails in postinstall hook #11077

yus-ham opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yus-ham
Copy link
Contributor

yus-ham commented May 14, 2024

What version of Bun is running?

latest

What platform is your computer?

Linux 6.8.0-31-generic x86_64 x86_64

What steps can reproduce the bug?

bun install + postinstall script that uses @inquirer/prompts

{
  "scripts": {
    "postinstall": "bun setup/init.js",

What is the expected behavior?

No response

What do you see instead?

yusham@pc:/work/steksacoid$ bun install
bun install v1.1.8-canary.1 (88468a2c)

$ bun setup/init.js

Project Initialization Tool


? Select environment: (Use arrow keys)
❯ Development
  Production^[[B^[[A^[[B^[[A^[[B^[[B^[[B^[[B^C
yusham@pc:/work/steksacoid$ 

yusham@pc:/work/steksacoid$ 
yusham@pc:/work/steksacoid$ bun postinstall
$ bun setup/init.js

Project Initialization Tool


? Select environment: Development
? Masukkan Database Driver: MySQL
? Masukkan Database Host: (localhost)

Additional information

its working fine if running bun postinstall manually

@yus-ham yus-ham added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant