diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..f704153 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +bun test \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 5e2d093..3d451f6 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 38a8aed..58f51b1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "bun run --watch src/index.ts", - "build": "bun build src/index.ts" + "build": "bun build src/index.ts", + "prepare": "husky" }, "dependencies": { "@elysiajs/swagger": "^1.1.5", @@ -13,6 +14,7 @@ }, "devDependencies": { "bun-types": "latest", + "husky": "^9.1.7", "prisma": "^5.22.0" }, "module": "src/index.js"