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
It's easy to begin development with the wrong dependencies installed. Here's some examples:
Switch branches, where the new branch has different dependencies
Pull the repo for the first time
What is the feature you are proposing to solve the problem?
Normally you'd have to remember to run bun i in these scenarios. I'd like bun to "remember" for me.
Before I run a script in the "scripts" field of the package.json (or bun test, etc.), I'd like bun to check that the correct dependencies are installed then either:
Error out, notifying me that I should run bun i
Automatically install the dependencies for me (i.e., run bun i in the background).
Drawbacks:
This will increase the latency of every command. It may be possible to utilize caching to speed this up for subsequent bun invocations.
Automatically running bun i can pose security risks (because postinstall scripts can run arbitrary code), so doing this should be opt-in on the developer-level in my opinion.
What alternatives have you considered?
Keep the status quo.
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
It's easy to begin development with the wrong dependencies installed. Here's some examples:
What is the feature you are proposing to solve the problem?
Normally you'd have to remember to run
bun i
in these scenarios. I'd like bun to "remember" for me.Before I run a script in the
"scripts"
field of the package.json (orbun test
, etc.), I'd like bun to check that the correct dependencies are installed then either:bun i
bun i
in the background).Drawbacks:
bun i
can pose security risks (becausepostinstall
scripts can run arbitrary code), so doing this should be opt-in on the developer-level in my opinion.What alternatives have you considered?
Keep the status quo.
The text was updated successfully, but these errors were encountered: