Skip to content

Instantly share code, notes, and snippets.

@roine
Created September 29, 2024 06:29
Show Gist options
  • Save roine/fcc05ca71f20397002b36cdbc7066839 to your computer and use it in GitHub Desktop.
Save roine/fcc05ca71f20397002b36cdbc7066839 to your computer and use it in GitHub Desktop.
Sublime merge and husky

Sublime merge runs in its own context and so when running husky pre-commit script it might not be able to find a command (eg: npx). The solution is to update the PATH with your bin within the husky script.

Open .husky/_/h and upadte the PATH.

PATH="/Users/jon/.n/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment