fix: fixed husky with commitlint and biome

This commit is contained in:
Hackntosh 2024-02-03 15:07:18 +00:00
parent 8cd3e996c4
commit dae8c4145e
3 changed files with 3 additions and 8 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npx --no -- commitlint --edit npx --no -- commitlint --edit

View file

@ -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());

View file

@ -20,7 +20,7 @@
"prisma:generate": "npx prisma generate", "prisma:generate": "npx prisma generate",
"prisma:seed": "prisma db seed", "prisma:seed": "prisma db seed",
"prisma:studio": "npx prisma studio", "prisma:studio": "npx prisma studio",
"prepare": "husky .husky/install", "prepare": "husky",
"prod": "npm run migrate:deploy && node dist/main", "prod": "npm run migrate:deploy && node dist/main",
"start": "nest start", "start": "nest start",
"test": "jest", "test": "jest",