mirror of
https://github.com/scratchfoundation/scratch-webpack-configuration.git
synced 2024-11-21 10:48:20 -05:00
chore: add husky hook for commitlint
This commit is contained in:
parent
a3d685e2a5
commit
81c2209a87
3 changed files with 19 additions and 0 deletions
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
npx --no-install commitlint --edit "$1"
|
16
package-lock.json
generated
16
package-lock.json
generated
|
@ -16,6 +16,7 @@
|
||||||
"@commitlint/cli": "19.0.3",
|
"@commitlint/cli": "19.0.3",
|
||||||
"@commitlint/config-conventional": "19.0.3",
|
"@commitlint/config-conventional": "19.0.3",
|
||||||
"@types/jest": "29.5.12",
|
"@types/jest": "29.5.12",
|
||||||
|
"husky": "9.0.11",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"webpack": "5.90.3"
|
"webpack": "5.90.3"
|
||||||
},
|
},
|
||||||
|
@ -4755,6 +4756,21 @@
|
||||||
"node": ">=10.17.0"
|
"node": ">=10.17.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/husky": {
|
||||||
|
"version": "9.0.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz",
|
||||||
|
"integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"husky": "bin.mjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/typicode"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/import-fresh": {
|
"node_modules/import-fresh": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"main": "src/index.cjs",
|
"main": "src/index.cjs",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepare": "husky || true",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
"@commitlint/cli": "19.0.3",
|
"@commitlint/cli": "19.0.3",
|
||||||
"@commitlint/config-conventional": "19.0.3",
|
"@commitlint/config-conventional": "19.0.3",
|
||||||
"@types/jest": "29.5.12",
|
"@types/jest": "29.5.12",
|
||||||
|
"husky": "9.0.11",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"webpack": "5.90.3"
|
"webpack": "5.90.3"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue