Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix husky pre-commit hook #314

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

twrichards marked this conversation as resolved.
Show resolved Hide resolved
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
Loading