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

Add Volta Support #2100

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

adamavenir
Copy link

@adamavenir adamavenir commented Dec 15, 2024

This PR adds integration for volta

If:

  • volta is installed
  • package.json is present

Then:

  • the script will parse the required Node.js version from the engines field
  • configure the environment to use the specified version
  • make the version available to the prompt in node-info

if (( $+commands[volta] )); then
alias vl='volta list'
alias vla='volta list all'
alias vi='volta install'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost every *nix out there has vi as editor command. Also chances are many users just type vi without thinking and expect the editor to show up on the screen.

Copy link
Author

@adamavenir adamavenir Dec 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol yes I am actually a vim user and just wasn't thinking 😆

I type out volta install myself and was actually just following the existing pattern. I'll make a change to have more sensible aliases here.

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

Successfully merging this pull request may close these issues.

2 participants