Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postinstall lifecycle script not running after bun install #9527

Closed
bsShoham opened this issue Mar 20, 2024 · 4 comments
Closed

postinstall lifecycle script not running after bun install #9527

bsShoham opened this issue Mar 20, 2024 · 4 comments
Labels
bug Something isn't working npm Something that relates to the npm-compatible client

Comments

@bsShoham
Copy link

What version of Bun is running?

v1.0.33

What platform is your computer?

Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Add a "postinstall" script to your package.json file, and run bun install

Repository for example:
https://github.com/bsShoham/bun-postinstall-bug

What is the expected behavior?

I expect the postinstall to run and show the output of the run
for example for the following script: "postinstall": "echo \"hello\""
I expect the output to be hello

What do you see instead?

nothing, the lifecycle script does not seem to run.

Additional information

This behavior is inconsistent with NPM in which the postinstall script always runs after "npm install" whether changes occurred or not

@bsShoham bsShoham added the bug Something isn't working label Mar 20, 2024
@Electroid Electroid added the npm Something that relates to the npm-compatible client label Mar 20, 2024
@bsShoham
Copy link
Author

Update:
After further checking, the postinstall does run, but no output is shown, not as critical, but still a bug of compatibility with npm that does show the output

@Jarred-Sumner
Copy link
Collaborator

yeah we will fix this soon

@bsShoham
Copy link
Author

bsShoham commented Apr 2, 2024

Works in v1.1 👌
can be closed if no PR needs to reference it directly

@dylan-conway
Copy link
Collaborator

Fixed in #11647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

4 participants