Skip to content

Conversation

@RichiCoder1
Copy link
Contributor

@RichiCoder1 RichiCoder1 commented Aug 16, 2019

It looks like you already did a ton of good work in NodeVersion to ensure nvm compatibility, so it was just a matter of checking for the presence of an .nvmrc and attempting to use that version.

Let me know if you think this is good and I'll add test/docs.

Closes #113;

@jasongin
Copy link
Owner

jasongin commented Aug 16, 2019

Looks good. Tests and docs would be nice too!

I have one concern: nvs does not support 100% of the same version syntax as nvm. The one major difference I'm aware of is how with nvm you can specify lts/* (for latest lts) or lts/carbon (for latest node 8.x).

Edit: Wait, now that I checked the code I see I did code that compatibility already. Nevermind!

@RichiCoder1
Copy link
Contributor Author

Edit: Wait, now that I checked the code I see I did code that compatibility already. Nevermind!

Yup! It looks like you already cover pretty much every readonable .nvmrc case :).

I'll add some docs and tests in the morn!

@RichiCoder1
Copy link
Contributor Author

Added a light test and some docs & comment updates

Copy link
Owner

@jasongin jasongin left a comment

Choose a reason for hiding this comment

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

Looks good, with just those small doc edits.

Thanks!

@jasongin jasongin merged commit 58196ca into jasongin:master Aug 16, 2019
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.

Read version from .nvmrc

2 participants