From cf00f641b51b01e47c07530c70f566cc8d9cf548 Mon Sep 17 00:00:00 2001 From: seyeong <137787915+JANGSEYEONG@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:31:49 +0900 Subject: [PATCH] docs: Update Husky setup commands for PNPM users (#16943) - Replace `npx husky init` with `pnpm exec husky init` - Update installation command to use pnpm - Add PNPM-specific pre-commit hook setup command --- docs/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.md b/docs/install.md index 257c13224..daa8f9c5a 100644 --- a/docs/install.md +++ b/docs/install.md @@ -151,7 +151,7 @@ For example, you can do the following to have Prettier run before each commit: ```bash pnpm add --save-dev husky lint-staged - npx husky init + pnpm exec husky init node --eval "fs.writeFileSync('.husky/pre-commit','pnpm exec lint-staged\n')" ```