Skip to content

Commit

Permalink
Merge pull request #314 from guardian/fix_husky_pre-commit_hook
Browse files Browse the repository at this point in the history
fix husky `pre-commit` hook
  • Loading branch information
twrichards authored Dec 17, 2024
2 parents 261c15c + 6da34c7 commit 222febf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/sh
echo "Running pre-commit hook"

. "$(dirname "$0")/_/husky.sh"

set -e

fnm use || true
nvm use || true

corepack enable
yarn lint-staged

Expand Down
5 changes: 4 additions & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
set -e

fnm install
corepack enable

fnm install || true
nvm install || true

dev-nginx setup-app dev-nginx.yaml

Expand Down

0 comments on commit 222febf

Please sign in to comment.