@inquirer/prompts fails in postinstall hook
yus-ham opened this issue · comments
Yusup Hambali commented
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