mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: fix husky install (#5671)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run lint:fix
|
||||
npx --no-install pretty-quick --staged
|
||||
npx --no-install lint-staged
|
||||
|
||||
972
package-lock.json
generated
972
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@@ -23,8 +23,9 @@
|
||||
"lint:fix": "eslint src --fix",
|
||||
"lint:typings": "tslint typings/index.d.ts",
|
||||
"prettier": "prettier --write src/**/*.js typings/**/*.ts",
|
||||
"prepublishOnly": "npm run test",
|
||||
"prepare": "husky install"
|
||||
"prepublishOnly": "pinst --disable && npm run test",
|
||||
"prepare": "is-ci || husky install",
|
||||
"postpublish": "pinst --enable"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -69,9 +70,11 @@
|
||||
"eslint-plugin-import": "^2.23.3",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
"husky": "^6.0.0",
|
||||
"is-ci": "^2.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"lint-staged": "^11.0.0",
|
||||
"pinst": "^2.1.6",
|
||||
"prettier": "^2.3.0",
|
||||
"pretty-quick": "^3.1.0",
|
||||
"tslint": "^6.1.3",
|
||||
"typescript": "^4.2.4"
|
||||
},
|
||||
@@ -79,6 +82,10 @@
|
||||
"node": ">=14.0.0",
|
||||
"npm": ">=7.0.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts",
|
||||
"*.{json,yml,yaml}": "prettier --write"
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-angular"
|
||||
|
||||
Reference in New Issue
Block a user