diff --git a/package.json b/package.json index 22d2ebe..5f9955d 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "homepage": "https://github.com/fastify/fastify-basic-auth#readme", "devDependencies": { "@fastify/auth": "^3.0.0", + "@fastify/pre-commit": "^2.0.2", "@types/node": "^18.0.0", "fastify": "^4.0.0-rc.2", "standard": "^17.0.0", @@ -42,5 +43,9 @@ }, "publishConfig": { "access": "public" - } + }, + "pre-commit": [ + "lint", + "test" + ] }