This allows use with GUI tools such as IDEs, which sometimes can't find the node command in the environment PATH. This implementation assumes nvm, and expects node to be available through $HOME/.nvm.
This approach might not suit every environment. It might make sense to have an install-time switch between node-based hooks and bash-based hooks, maybe using environment variables.
This allows use with GUI tools such as IDEs, which sometimes can't find the
node
command in the environmentPATH
. This implementation assumes nvm, and expects node to be available through$HOME/.nvm
.This approach might not suit every environment. It might make sense to have an install-time switch between node-based hooks and bash-based hooks, maybe using environment variables.