From e9351c0c1900ca29dbd78c39a4e6fa12ba9df4bb Mon Sep 17 00:00:00 2001 From: Mohamad Khajavi Date: Sun, 1 May 2022 07:47:58 +0430 Subject: [PATCH] docs: add pnpm installation (#1139) --- docs/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/README.md b/docs/README.md index b9009a046..4c1e3fade 100644 --- a/docs/README.md +++ b/docs/README.md @@ -64,6 +64,7 @@ Already using husky? See [Migrate from 4 to 7](/?id=migrate-from-v4-to-v7). npx husky-init && npm install # npm npx husky-init && yarn # Yarn 1 yarn dlx husky-init --yarn2 && yarn # Yarn 2 +pnpm dlx husky-init && pnpm install # pnpm ``` It will setup husky, modify `package.json` and create a sample `pre-commit` hook that you can edit. By default, it will run `npm test` when you commit.