Skip to content

Commit 0c99af6

Browse files
committed
chore(package.json): replace postinstall script with prepare for husky setup
Update the npm script from `postinstall` to `prepare` in `package.json` to ensure husky hooks trigger correctly. Use `|| exit 0` to avoid errors during execution when husky is not present.
1 parent b9eba02 commit 0c99af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test:cov": "jest --coverage",
2727
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2828
"test:e2e": "jest --config ./test/jest-e2e.json",
29-
"postinstall": "husky || true"
29+
"prepare": "husky || exit 0"
3030
},
3131
"dependencies": {
3232
"@nestjs/common": "^11.1.5",

0 commit comments

Comments
 (0)