diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 00000000..31354ec1 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg new file mode 100755 index 00000000..382ce65f --- /dev/null +++ b/.husky/prepare-commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx devmoji -e --lint diff --git a/package.json b/package.json index e7f3d1c2..bff3d3cd 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,6 @@ "monorepo", "build" ], - "husky": { - "hooks": { - "commit-msg": "npx --no-install devmoji -e --lint" - } - }, "scripts": { "preultra": "sleep 2", "postultra": "sleep 2", @@ -78,9 +73,7 @@ "@types/eslint": "7.2.6", "@types/eslint-plugin-prettier": "3.1.0", "@types/jest": "26.0.20", - "@types/json5": "0.0.30", - "@types/node": "13.13.45", - "@types/pnpapi": "0.0.1", + "@types/node": "14.14.31", "@types/prettier": "2.2.1", "@types/rimraf": "3.0.0", "@types/semantic-release": "17.2.0", @@ -88,24 +81,25 @@ "@types/sinon-chai": "3.2.5", "@types/wrap-ansi": "3.0.0", "@types/yamljs": "0.2.31", - "@types/yargs": "15.0.13", + "@types/yargs": "16.0.0", "@typescript-eslint/eslint-plugin": "4.15.2", "@typescript-eslint/parser": "4.15.2", + "@yarnpkg/pnp": "^2.3.2", "builtin-modules": "3.2.0", "chai": "4.3.0", "conventional-changelog-cli": "2.1.1", "coveralls": "3.1.0", "devmoji": "2.2.0", "eslint": "7.20.0", - "eslint-config-prettier": "7.2.0", + "eslint-config-prettier": "8.1.0", "eslint-plugin-chai-expect": "2.2.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jest": "24.1.5", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "3.3.1", "eslint-plugin-promise": "4.3.1", - "eslint-plugin-unicorn": "26.0.1", - "husky": "4.3.8", + "eslint-plugin-unicorn": "28.0.2", + "husky": "5.1.1", "jest": "26.6.3", "markdownlint-cli": "0.26.0", "prettier": "2.2.1", @@ -120,22 +114,22 @@ }, "dependencies": { "ansi-split": "^1.0.1", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.1", - "fast-glob": "^3.2.2", + "chalk": "^4.1.0", + "cross-spawn": "^7.0.3", + "fast-glob": "^3.2.5", "globrex": "^0.1.2", - "json5": "^2.1.1", + "json5": "^2.2.0", "micro-memoize": "^4.0.9", "npm-run-path": "4.0.1", "pid-cwd": "^1.2.0", - "ps-list": "^7.0.0", + "ps-list": "^7.2.0", "shellwords-ts": "^3.0.0", "string-width": "^4.2.0", "tslib": "2.1.0", - "type-fest": "^0.21.0", + "type-fest": "^0.21.2", "wrap-ansi": "^7.0.0", "yamljs": "^0.3.0", - "yargs": "^16.0.0" + "yargs": "^16.2.0" }, "resolutions": { "minimist": "^1.2.2"