Update the pre-commit script to handle the availability of pnpm. If pnpm is not available, the script will use the alternative path $HOME/.local/bin/pnpm. This change ensures that the lint-staged command is executed correctly regardless of the availability of pnpm.