{ "scripts": { "precommit": "npm test", }, "husky": { "hooks": { "pre-commit": "precommit" } } }. これで commit 前に hook されて npm test が実行されれます.
確定! 回上一頁