The latter should work but the former requires an extra step for now iirc: https://bun.sh/docs/cli/install#lifecycle-scripts
https://github.com/oven-sh/bun/issues/1588