diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..6846960 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,6 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run lint +npm run build:check +npm run test:unit diff --git a/package.json b/package.json index 4d4a113..7603b9a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "docker:integration:run": "docker compose -f ./test/integration/docker-compose.yml run --rm tests", "docker:test:integration": "npm run docker:integration:run -- npm run test:integration", "docker:cover:integration": "npm run docker:integration:run -- npm run cover:integration", - "postdocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml down" + "postdocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml down", + "prepare": "husky install" }, "repository": { "type": "git",