From d65edc85c6ce5a1ea6bff569e3360e00629873db Mon Sep 17 00:00:00 2001 From: Ricardo Spear Date: Mon, 6 Sep 2021 06:11:22 -0500 Subject: [PATCH] Allows lefthook to work when node_modules is not in root folder for npx (#224) npx will automatically install the module if not present. yarn does not do this and complains when the package.json is not found. --- cmd/templates/hook.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/templates/hook.tmpl b/cmd/templates/hook.tmpl index f731a278..aca95246 100644 --- a/cmd/templates/hook.tmpl +++ b/cmd/templates/hook.tmpl @@ -21,7 +21,7 @@ call_lefthook() elif bundle exec lefthook -h >/dev/null 2>&1 then bundle exec lefthook $1 - elif npx lefthook -h >/dev/null 2>&1 + elif npx @arkweid/lefthook -h >/dev/null 2>&1 then npx lefthook $1 elif yarn lefthook -h >/dev/null 2>&1