Fix bun run folder - #15117
Merged
Merged
Fix bun run folder#15117
Conversation
Collaborator
Contributor
|
I think you should also update the docs with this new order to be more explicit :) https://bun.sh/docs/cli/run |
…eQuotedString to no longer need casting
pfgithub
marked this pull request as ready for review
November 19, 2024 02:00
Contributor
|
very excited to see this land; of the top ~1000 packages, this affects 402 |
1 task
Jarred-Sumner
marked this pull request as ready for review
January 18, 2025 06:06
Collaborator
|
This isn't really done, but I'm going to merge it. Please add a follow-up PR that:
There are 2 additional system calls to bun run from this PR. I think that's okay given the context. |
This was referenced Jan 30, 2025
This was referenced Feb 7, 2025
This was referenced Jul 24, 2026
6 tasks done
This was referenced Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This may be a breaking change, so it might wait for 1.2. When using
bun <script>orbun run <script>, it now always checks in this order:node_modules/.binwith that name? Execute it and exit.bun runonly) Is there a binary in$PATHwith that name? Execute it and exit.Previously, it would try guessing if it looked like a script name and sometimes it would execute before checking scripts in package.json.
Fixes #13819, Fixes #15743, Fixes #16169, Fixes #16482
New features: If there is a script called
myscript.jsyou can now run it withbun myscriptjust like node allowsTODO:
cli/runabout resolution orderTest failures:
Consider:
bun:mainand run directly instead.bun:mainis generated inentry_points.zig.Performance:
~0.5ms slower :/ even for
./which is strange