Skip to content

Commit

Permalink
Update husky to v6.0 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschright authored May 13, 2021
1 parent b074daf commit 625cb76
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 176 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run build && git add dist/
173 changes: 4 additions & 169 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
"license": "MPL-2.0",
"publisher": "hashicorp",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/hashicorp/setup-terraform.git"
},
"scripts": {
"test": "cd wrapper && npm test && cd .. && semistandard --env jest && jest --coverage",
"lint": "cd wrapper && npm run lint && cd .. && semistandard --env jest --fix",
"build": "cd wrapper && npm run build && cd .. && ncc build index.js --out dist",
"postinstall": "cd wrapper && npm install"
"postinstall": "cd wrapper && npm install",
"prepare": "husky install"
},
"keywords": [],
"author": "",
Expand All @@ -22,7 +27,7 @@
},
"devDependencies": {
"@vercel/ncc": "^0.28.5",
"husky": "^4.3.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"nock": "^13.0.11",
"semistandard": "^16.0.0"
Expand All @@ -39,10 +44,5 @@
"dist/**",
"wrapper/**"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run build && git add dist/"
}
}
}

0 comments on commit 625cb76

Please sign in to comment.