-
Notifications
You must be signed in to change notification settings - Fork 9
Support nvmrc pseudo version #4
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 nvmrc pseudo version #4
Conversation
Codecov Report
|
Thanks a lot @AdrieanKhisbe! Could you please tell me more about your use case? |
You're welcome :) You're totally right about the final point, this is not meant to replace nvm, and For me there is two use cases behind adding to
I hope I wasn't too verbose :) |
(rethinking about it, maybe you would prefer this to happen at another level, like |
The feature makes sense from the angle you are describing above, thanks for explaining! Yes, it should actually probably be implemented inside Please note after being loaded from file, the version would need to go through all of of Also it would be nice to also support not only
If supporting more than just
Please let me know what you think. |
@ehmicky Very interesting suggestions you made! :)
If you agree, I'm going then to port the feature to
|
Yes, You might want to make it in a separate PR though, once |
Actually, looking into it, What about |
I haven't thought of cli parsing! I'll say would work, but maybe |
Yes |
Cool! |
…ect version locks (.node-version,.nvmrc,.naverc) Follow up discussion on client library get-node: ehmicky/get-node#4
…ect version locks (.node-version,.nvmrc,.naverc) Follow up discussion on client library get-node: ehmicky/get-node#4
@ehmicky I just opened the Pull request. as you might see in the reference github inserted. Tell me what you think of the implementation. Also, I'm tempted to introduce resolving of nvm aliases (lts and user defined), if you're open to it. $ nvm ls
# .... user defined alias
default -> 8.16.2 (-> v8.16.2)
node -> stable (-> v12.16.1) (default)
# ....
lts/* -> lts/erbium (-> v12.16.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0
lts/dubnium -> v10.19.0 (-> N/A)
lts/erbium -> v12.16.1
# .... eve
# then:
$ nvm_resolve_alias lts/carbon
v8.17.0
$ nvm alias carbon 2> /dev/null
lts/carbon -> v8.17.0 |
…oject version locks Supported files for node locks: .node-version, .nvmrc, .naverc Follow up discussion on client library get-node: ehmicky/get-node#4
…oject version locks Supported files for node locks: .node-version, .nvmrc, .naverc Follow up discussion on client library get-node: ehmicky/get-node#4
ehmicky/normalize-node-version#1 having landed, released and integrated via fc7c5d7 and following, |
Hello @ehmicky ,
I was looking to add a specifc feature to your awesome
nve
, and end up here, after passinig bynvexeca
🙂So here is the Proposal:
nve
, running on the.nvmrc
version of project and others, without having to explicitly say which exact my .nvmrc isnvmrc
pseudo variable, and replace it by the version range stored in.nvmrc
(using find-up)README.md
, thedocs
directory (ifany) and the
examples
directory (if any).seen below. (github actions are greenish on my rep, they failed at coverage report)
🙂