nodejs-testing icon indicating copy to clipboard operation
nodejs-testing copied to clipboard

support nvmrc in node version

Open rluvaton opened this issue 1 year ago • 1 comments

Thanks for the extension!

It would be great if you could use the version in the nvmrc file or the version of the current terminal in that directory (which will auto load the current version in the nvmrc file)

rluvaton avatar Feb 20 '24 13:02 rluvaton

Hm,. The way that comes to mind is spawning a process as a login shell in the test directory and reading variables from there. It looks like fish, zsh, and bash all would work with ${process.env.SHELL} -l -c env, but it's not a guaranteed to be portable.

connor4312 avatar Mar 10 '24 02:03 connor4312