From dae8c4145e90dcb1bd32cd93507c579518048b08 Mon Sep 17 00:00:00 2001 From: CookieDasora Date: Sat, 3 Feb 2024 15:07:18 +0000 Subject: [PATCH] fix: fixed husky with commitlint and biome --- .husky/commit-msg | 4 ++-- .husky/install.mjs | 5 ----- package.json | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 .husky/install.mjs diff --git a/.husky/commit-msg b/.husky/commit-msg index 4002db7..b9dab70 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" +. "$(dirname "$0")/_/husky.sh" -npx --no -- commitlint --edit +npx --no -- commitlint --edit diff --git a/.husky/install.mjs b/.husky/install.mjs deleted file mode 100644 index ec3e4ab..0000000 --- a/.husky/install.mjs +++ /dev/null @@ -1,5 +0,0 @@ -if (process.env.NODE_ENV === "production" || process.env.CI === "true") { - process.exit(0); -} -const husky = (await import("husky")).default; -console.log(husky()); diff --git a/package.json b/package.json index 9967735..dce9475 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "prisma:generate": "npx prisma generate", "prisma:seed": "prisma db seed", "prisma:studio": "npx prisma studio", - "prepare": "husky .husky/install", + "prepare": "husky", "prod": "npm run migrate:deploy && node dist/main", "start": "nest start", "test": "jest",