diff --git a/.husky/pre-push b/.husky/pre-push index 255c86d32..a26d61b7b 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,3 +1,9 @@ +# Ensure dependencies are installed (worktrees start with no node_modules) +if [ ! -d node_modules ]; then + echo "node_modules missing, running npm install..." + npm install --prefer-offline || exit 1 +fi + echo "Running type check..." npm run typecheck || exit 1 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..2bd5a0a98 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22