Skip to content

Commit b3a89c3

Browse files
committed
update config files for husky
1 parent 5406c9b commit b3a89c3

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.husky/pre-commit

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

.husky/pre-push

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

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"pack": "ncc build",
99
"precommit": "lint-staged",
1010
"test": "DEBUG=jest eslint **/*.ts && jest --coverage --detectOpenHandles --verbose",
11-
"all": "npm run build && npm run precommit && npm run pack && npm test"
11+
"all": "npm run build && npm run precommit && npm run pack && npm test",
12+
"prepare": "husky"
1213
},
1314
"repository": {
1415
"type": "git",
@@ -26,12 +27,6 @@
2627
"url": "https://github.com/aws-actions/aws-cloudformation-github-deploy/issues"
2728
},
2829
"homepage": "https://github.com/aws-actions/aws-cloudformation-github-deploy#readme",
29-
"husky": {
30-
"hooks": {
31-
"pre-commit": "npm run precommit",
32-
"pre-push": "npm run test"
33-
}
34-
},
3530
"dependencies": {
3631
"@actions/core": "^1.10.0",
3732
"@aws-sdk/client-cloudformation": "^3.474.0",
@@ -51,7 +46,7 @@
5146
"eslint-plugin-github": "^4.4.1",
5247
"eslint-plugin-jest": "^27.1.5",
5348
"eslint-plugin-prettier": "^4.2.1",
54-
"husky": "^8.0.2",
49+
"husky": "^9.1.7",
5550
"jest": "^29.3.1",
5651
"jest-circus": "^29.3.1",
5752
"js-yaml": "^4.1.0",

0 commit comments

Comments
 (0)