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

Removing "hs" alias for http-server? #695

Closed
bengoshow opened this issue Jul 8, 2021 · 3 comments · Fixed by #716
Closed

Removing "hs" alias for http-server? #695

bengoshow opened this issue Jul 8, 2021 · 3 comments · Fixed by #716

Comments

@bengoshow
Copy link

I have another command line tool that uses hs to run commands, but there is a conflict between that tool and http-server, which appears to be installed along with Node.js. Is there any way to remove or disable the hs alias directive as shown on

"hs": "./bin/http-server"

@thornjad
Copy link
Member

I'm on board for this, I think hs should be a user-defined alias if it's desired. Though I'd consider it a major change in case anyone is depending on this alias, meaning it would need to wait until a major release. I'll queue this into a new milestone to keep track of it.

@thornjad thornjad added this to the v14.0 milestone Jul 12, 2021
@alexp1917
Copy link

alexp1917 commented Dec 25, 2021

this was a very convenient alias

for anyone else here for the same reason:

yarn global add [email protected]

@thornjad
Copy link
Member

A better alternative to using an old version would be creating your own alias with alias hs='http-server'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants