What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 21.6.0 x86_64 i386
What steps can reproduce the bug?
Hi,
I encountered an issue with installing @swc/core as a trusted dependency.
Bun tries to run its prepare script, which fails.
AFAIK, per the npm docs and the behavior of npm/yarn, the prepare script should not be run when installing a dependency.
It is intended to be a script for the local dev of that package.
What is the expected behavior?
bun install should not run prepare scripts of trusted dependencies.
What do you see instead?
example failure when installing @swc/core:
bun install v1.0.0 (822a00c4)
+ @swc/core@1.3.84
/bin/bash: husky: command not found
3 packages installed [30.00ms]
error: script "prepare" exited with code 127
Additional information
No response
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 21.6.0 x86_64 i386
What steps can reproduce the bug?
Hi,
I encountered an issue with installing
@swc/coreas a trusted dependency.Bun tries to run its
preparescript, which fails.AFAIK, per the npm docs and the behavior of npm/yarn, the
preparescript should not be run when installing a dependency.It is intended to be a script for the local dev of that package.
What is the expected behavior?
bun installshould not runpreparescripts of trusted dependencies.What do you see instead?
example failure when installing
@swc/core:Additional information
No response