website: fix husky command (#20405)

Update husky pre-commit to work in website, a sub-directory of the directory containing the .git dir
pull/20440/head
Heat Hamilton 10 months ago committed by GitHub
parent d0243b618d
commit 18a6804824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1 +1,3 @@
next-hashicorp precommit
cd website
npx next-hashicorp precommit

@ -11,7 +11,7 @@
"@hashicorp/platform-cli": "^2.7.3",
"@hashicorp/platform-content-conformance": "^0.0.12",
"dart-linkcheck": "^2.0.15",
"husky": "^9.0.6",
"husky": "^9.0.7",
"next": "^12.3.1",
"prettier": "^3.2.4"
},
@ -6140,9 +6140,9 @@
}
},
"node_modules/husky": {
"version": "9.0.6",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz",
"integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==",
"version": "9.0.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz",
"integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==",
"dev": true,
"bin": {
"husky": "bin.js"
@ -19272,9 +19272,9 @@
"peer": true
},
"husky": {
"version": "9.0.6",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz",
"integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==",
"version": "9.0.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz",
"integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==",
"dev": true
},
"iconv-lite": {

@ -7,7 +7,7 @@
"@hashicorp/platform-cli": "^2.7.3",
"@hashicorp/platform-content-conformance": "^0.0.12",
"dart-linkcheck": "^2.0.15",
"husky": "^9.0.6",
"husky": "^9.0.7",
"next": "^12.3.1",
"prettier": "^3.2.4"
},
@ -15,7 +15,7 @@
"scripts": {
"build": "./scripts/website-build.sh",
"format": "next-hashicorp format",
"prepare": "husky",
"prepare": "cd .. && husky website/.husky",
"generate:component": "next-hashicorp generate component",
"generate:readme": "next-hashicorp markdown-blocks README.md",
"lint": "next-hashicorp lint",

Loading…
Cancel
Save