-
Notifications
You must be signed in to change notification settings - Fork 234
fix(install): dispatch managed bunx through bun x #2151
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
Open
liangmiQwQ
wants to merge
7
commits into
voidzero-dev:main
Choose a base branch
from
liangmiQwQ:liang/codex/fix-bunx-shim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a44d2b5
fix(install): dispatch managed bunx through bun x
liangmiQwQ 686a8f5
test(snapshots): cover managed bunx wrapper
liangmiQwQ 17889e1
wip
liangmiQwQ eb9ffd5
Merge branch 'main' into liang/codex/fix-bunx-shim
liangmiQwQ b71777d
Merge branch 'main' into liang/codex/fix-bunx-shim
liangmiQwQ bdc78dd
Merge branch 'main' into liang/codex/fix-bunx-shim
liangmiQwQ a9f3ca0
refactor(install): remove legacy bunx shim refresh
liangmiQwQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/vite_task_bunx_wrapper/package.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "name": "vite-task-bunx-wrapper", | ||
| "version": "1.0.0", | ||
| "private": true, | ||
| "scripts": { | ||
| "gate:test": "bun probe", | ||
| "probe": "bunx --bun probe" | ||
| }, | ||
| "dependencies": { | ||
| "probe-bin": "file:./probe-bin" | ||
| }, | ||
| "devEngines": { | ||
| "packageManager": { | ||
| "name": "bun", | ||
| "version": "1.3.14", | ||
| "onFail": "download" | ||
| } | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
...s/vite_cli_snapshots/tests/cli_snapshots/fixtures/vite_task_bunx_wrapper/probe-bin/bin.js
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| console.log('probe binary ran'); |
7 changes: 7 additions & 0 deletions
7
..._cli_snapshots/tests/cli_snapshots/fixtures/vite_task_bunx_wrapper/probe-bin/package.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "name": "probe-bin", | ||
| "version": "1.0.0", | ||
| "bin": { | ||
| "probe": "bin.js" | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/vite_task_bunx_wrapper/snapshots.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [[case]] | ||
| name = "vite_task_bunx_wrapper" | ||
| vp = "local" | ||
| steps = [ | ||
| { argv = ["vp", "install"], snapshot = false }, | ||
| { argv = ["vp", "run", "gate:test"], comment = "managed bunx should execute the package binary without recursively invoking the matching package script" }, | ||
| ] |
14 changes: 14 additions & 0 deletions
14
...i_snapshots/fixtures/vite_task_bunx_wrapper/snapshots/vite_task_bunx_wrapper.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # vite_task_bunx_wrapper | ||
|
|
||
| ## `vp install` | ||
|
|
||
|
|
||
| ## `vp run gate:test` | ||
|
|
||
| managed bunx should execute the package binary without recursively invoking the matching package script | ||
|
|
||
| ``` | ||
| $ bun probe ⊘ cache disabled | ||
| $ bunx --bun probe | ||
| probe binary ran | ||
| ``` |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.