Working with Docker, I'm trying to make Husky work when there is Node.js in the container but no on the local machine.
As it will be triggered with git commands, with the info from here: "if you're running git commands in the terminal, husky will use the version defined in your shell PATH
", and this other: "Husky will source ~/.huskyrc
file if it exists before running hook scripts. You can use it, for example, to load a node version manager or run some shell commands before hooks."
Could something like changing the PATH
so it points to the Node.js that is in the container be a solution? If so, how could be done?
Thanks in advance!