[New] allow .nvmrc files to support comments

In theory, `npx nvmrc` can now be used to validate an `.nvmrc` file that `nvm` will support. Allowances have been made for future extensibility, and aliases may no longer contain a `#`.

Fixes #3336. Closes #2288.

Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
This commit is contained in:
Jordan HarbandandYash Singh committed 2024-06-07 10:13:00 -07:00
1 parent 95081f0bc2
commit 29dce5edfd
8 files changed
+278 -3

No files matched your search

Vendored Submodule
+1
Submodule test/fixtures/nvmrc added at 0d325aa903.