Skip to content

Commit 601b705

Browse files
jbl428imdudu1
andcommitted
chore: add release-it hooks
Co-authored-by: imdudu1 <[email protected]>
1 parent 894a11f commit 601b705

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ rules:
2525
order: asc
2626
caseInsensitive: true
2727
'@typescript-eslint/no-extraneous-class': 0
28+
'@typescript-eslint/no-explicit-any': 0

.release-it.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
},
88
"publishConfig": {
99
"access": "public"
10+
},
11+
"hooks": {
12+
"before:init": ["npm run format", "npm test"],
13+
"after:bump": "npm run build"
1014
}
1115
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"homepage": "https://github.com/r2don/nest-http-interface#readme",
2222
"main": "index.js",
2323
"scripts": {
24+
"format": "eslint --fix ./lib",
2425
"build": "tsc --build --verbose tsconfig.build.json",
2526
"clean": "tsc --build --clean tsconfig.build.json",
2627
"test": "vitest run",

0 commit comments

Comments
 (0)