I'm struggling to use zx when installed locally. It seems I have to install it globally if I want to run it directly with ./pre-commit.mjs. Or if I add node_modules/.bin to the path, then it works when I'm at the project root. Under .git/hooks, however, that path change won't stick unless it was an absolute path. What is the best approach to this situation?
I'm struggling to use zx when installed locally. It seems I have to install it globally if I want to run it directly with
./pre-commit.mjs. Or if I addnode_modules/.binto the path, then it works when I'm at the project root. Under.git/hooks, however, that path change won't stick unless it was an absolute path. What is the best approach to this situation?