Skip to content

Commit

Permalink
fix(bun): install bunx symlink
Browse files Browse the repository at this point in the history
Closes #1680
  • Loading branch information
booniepepper committed Feb 21, 2024
1 parent 6c656f8 commit 8788eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/test_bun
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export MISE_EXPERIMENTAL=1
cat <<EOF >.bun-version
1.0.17
EOF

mise i bun
assert_contains "mise x bun -- bun -v" "1.0.17"
assert_contains "mise x bun -- bunx oclif --version" "oclif"
rm .bun-version
1 change: 1 addition & 0 deletions src/plugins/core/bun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl BunPlugin {
self.bun_bin(&ctx.tv),
)?;
file::make_executable(&self.bun_bin(&ctx.tv))?;
file::make_symlink(Path::new("./bun"), &ctx.tv.install_path().join("bin/bunx"))?;
Ok(())
}

Expand Down

0 comments on commit 8788eac

Please sign in to comment.