Describe the bug
Postinstall script is not run when installing supabase with bun in a turborepo monorepo.
This failure happens silently with no error or warning.
To Reproduce
Steps to reproduce the behavior:
bunx create-turbo@latest
cd ./my-turborepo
bun add supabase
bun supabase
- Error no script called 'supabase'
Expected behavior
The postinstall script should run, creating supabase.exe and supabase.ps1 in node_modules/.bin
This causes bun supabase to fail, and bun run supabase defers to the globally installed cli.
I tried older versions of the cli but getting the same issue.
Workaround
I was able to work around this by running the postinstall script myself with
cd node_modules/supabase
node ./scripts/postinstall.js
After this bun supabase works as expected.
Edit: for now I added a postinstall script to my root package.json
"postinstall": "cd node_modules/supabase && node ./scripts/postinstall.js"
System information
Rerun the failing command with --create-ticket flag.
- Ticket ID: can't run
- Version of OS: Windows 11
- Version of CLI: 2.72.9
- Versions of services: can't run