We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pnpm add husky -D
prepare 脚本会在 pnpm install (不带参数) 之后自动执行。
pnpm install
{ "scripts": { "prepare": "husky install" } }
pnpm prepare
npx husky add .husky/pre-commit "npm run test"
执行完该脚本,可以看到新建了一个.husky文件.里面会存在一个pre-commit 脚本内容。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
新版husky 实践
prepare 脚本会在
pnpm install
(不带参数) 之后自动执行。pnpm prepare
新增npx husky add .husky/pre-commit "npm run test"
执行完该脚本,可以看到新建了一个.husky文件.里面会存在一个pre-commit 脚本内容。
The text was updated successfully, but these errors were encountered: