You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloudflare pages v2 (I haven't been able to reproduce the bug locally)
What steps can reproduce the bug?
In a monorepo with the following structure :
packages/foo/package.json
package.json
The postinstall script in foo/package.json script doesn't run when running bun i.
I tried with { "trustedDependencies": ["foo"] } in the root package.json without success.
I suspect the reason is that I'm getting this error while installing dependencies. This error doesn't seem very important and I'm able to manually run the postinstall scripts later.
I would expect the postinstall scripts to run (They run locally on my machine Darwin 22.6.0 arm64 arm)
Additionally if the error is not critical, maybe the postinstall scripts should run before the error, and we could have a way to ignore/silence it or it should be a warning instead?
Hebilicious
changed the title
postinstall scripts in monorepos aren't run if there's an error with the installation
postinstall scripts in monorepos aren't run if there's errors with the installation
Sep 1, 2023
not only post install but any hook. My repo is a monorepo that defines the prepare script for the packages to be built and those don't run after the error.
What version of Bun is running?
v0.8.1
What platform is your computer?
Cloudflare pages v2 (I haven't been able to reproduce the bug locally)
What steps can reproduce the bug?
In a monorepo with the following structure :
The postinstall script in foo/package.json script doesn't run when running
bun i
.I tried with
{ "trustedDependencies": ["foo"] }
in the root package.json without success.I suspect the reason is that I'm getting this error while installing dependencies. This error doesn't seem very important and I'm able to manually run the postinstall scripts later.
What is the expected behavior?
I would expect the postinstall scripts to run (They run locally on my machine
Darwin 22.6.0 arm64 arm
)Additionally if the error is not critical, maybe the postinstall scripts should run before the error, and we could have a way to ignore/silence it or it should be a warning instead?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: