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

support specifying bun version #6

Open
haochenx opened this issue Mar 7, 2024 · 0 comments
Open

support specifying bun version #6

haochenx opened this issue Mar 7, 2024 · 0 comments
Assignees

Comments

@haochenx
Copy link
Member

haochenx commented Mar 7, 2024

We'd like to add an Options on Versions
bunjs-version (default: system) to allow specifying bun's version.
expected values are

  • a specific version of bun, e.g. 1.0.30
  • latest: will check and upgrade
  • system: will use the whatever version already installed (if non is installed, nor bun bunx will be available)

and we intend to support arbitrary version by

  • check if the already installed bunjs is of the specified version
    • if specified version is latest, bun upgrade --force will be executed at runtime
    • if specific version is specified and another version is installed,
      curl -fsSL https://bun.sh/install | (export export BUN_INSTALL=/usr/bin; bash -s -- bun-v${version})
      will be used to install the specified version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants