npm set-script prepare "husky install" npm run prepare. Add a hook: npx husky add .husky/pre-commit "npm test" git add .husky/pre-commit. Make a commit:.
確定! 回上一頁