Skip to content

Commit 07812ed

Browse files
committed
fix: update Husky configuration to v9 format
1 parent b6556dd commit 07812ed

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"env:set-database-url": "tsx src/scripts/run-with-database-url.ts",
3030
"release": "release-it",
3131
"build": "tsc",
32-
"postinstall": "patch-package"
32+
"postinstall": "patch-package",
33+
"prepare": "husky"
3334
},
3435
"devDependencies": {
3536
"@release-it/keep-a-changelog": "^7.0.0",
@@ -79,11 +80,6 @@
7980
]
8081
}
8182
},
82-
"husky": {
83-
"hooks": {
84-
"pre-commit": "npm test"
85-
}
86-
},
8783
"dependencies": {
8884
"@discordjs/builders": "1.12.2",
8985
"@discordjs/opus": "^0.10.0",

0 commit comments

Comments
 (0)