Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
chore: upgrade husky to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
SSen committed Mar 24, 2021
1 parent 5796c7b commit 56060cb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 118 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
14 changes: 14 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn run markdown-source-import README.md --git-add

cp README.md packages/src/@rocket-scripts/web/README.md
git add packages/src/@rocket-scripts/web/README.md

cp README.md packages/src/@rocket-scripts/electron/README.md
git add packages/src/@rocket-scripts/electron/README.md

yarn run lint-staged

yarn workspace packages run precommit
21 changes: 0 additions & 21 deletions .huskyrc.js

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"test": "yarn workspace packages run test",
"coverage": "yarn workspace packages run coverage"
"coverage": "yarn workspace packages run coverage",
"prepare": "husky install"
},
"lint-staged": {
"packages/{src,@types}/{**/*,*}.{ts,tsx}": [
Expand All @@ -28,7 +29,7 @@
"@ssen/prettier-config": "^1.2.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"husky": "^4.3.8",
"husky": "^5.2.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1"
}
Expand Down
102 changes: 7 additions & 95 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5126,13 +5126,6 @@ __metadata:
languageName: node
linkType: hard

"compare-versions@npm:^3.6.0":
version: 3.6.0
resolution: "compare-versions@npm:3.6.0"
checksum: 09525264502bda1f6667ad2429eaf5520b543d997e79e7a94b66a5896df8921cdc3a97140dfff75af6c9ba1859c872de1921c3cf8a6c48ed807bbf9f582cf093
languageName: node
linkType: hard

"component-emitter@npm:^1.2.1":
version: 1.3.0
resolution: "component-emitter@npm:1.3.0"
Expand Down Expand Up @@ -7167,25 +7160,6 @@ __metadata:
languageName: node
linkType: hard

"find-up@npm:^5.0.0":
version: 5.0.0
resolution: "find-up@npm:5.0.0"
dependencies:
locate-path: ^6.0.0
path-exists: ^4.0.0
checksum: cd0b77415bc59e5af31e4e1b29c6ff8d965d9ca3c60a4b74161f8f116c0d1ad8d35bc6e53bf8f92c69e704e98183f1628a363ed7d519eb28eff54378b8f167a7
languageName: node
linkType: hard

"find-versions@npm:^4.0.0":
version: 4.0.0
resolution: "find-versions@npm:4.0.0"
dependencies:
semver-regex: ^3.1.2
checksum: 05174128349e522f0746cc343a509f2ce1c8c765e24968ff2ac6f82fda4e4c680f5f71c6a781ce28406d19addc32a205116ac14ee83cb2e336635dd803f56cbd
languageName: node
linkType: hard

"flat-cache@npm:^3.0.4":
version: 3.0.4
resolution: "flat-cache@npm:3.0.4"
Expand Down Expand Up @@ -8273,24 +8247,12 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"husky@npm:^4.3.8":
version: 4.3.8
resolution: "husky@npm:4.3.8"
dependencies:
chalk: ^4.0.0
ci-info: ^2.0.0
compare-versions: ^3.6.0
cosmiconfig: ^7.0.0
find-versions: ^4.0.0
opencollective-postinstall: ^2.0.2
pkg-dir: ^5.0.0
please-upgrade-node: ^3.2.0
slash: ^3.0.0
which-pm-runs: ^1.0.0
"husky@npm:^5.2.0":
version: 5.2.0
resolution: "husky@npm:5.2.0"
bin:
husky-run: bin/run.js
husky-upgrade: lib/upgrader/bin.js
checksum: 1ac4fb51ffd93547ec861f185d86bdbfbac8ee24ce60417d531dbe5222e33fc754436e87e4e2b37a44dcefdc78c151f9ba4ac57c05773f5c36377cc4eb73732b
husky: lib/bin.js
checksum: a5a99bea465dbb8499e93d50eb632cc95ffea8cec3662c483af6587f4a5adcff8e5384cf9e1ff7275b2e3bff34f61404d60a7aa0e846c5b08f044ddeca7db688
languageName: node
linkType: hard

Expand Down Expand Up @@ -10295,15 +10257,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"locate-path@npm:^6.0.0":
version: 6.0.0
resolution: "locate-path@npm:6.0.0"
dependencies:
p-locate: ^5.0.0
checksum: 4c379638152e0e5fda9a8cc07005702f81fcb9899db0f66d691ac1e64193dea670af14e96c50f14d82d45959daa4c400cb712c158cffe22ae265bfc1b1e3a221
languageName: node
linkType: hard

"lodash._reinterpolate@npm:^3.0.0":
version: 3.0.0
resolution: "lodash._reinterpolate@npm:3.0.0"
Expand Down Expand Up @@ -11580,15 +11533,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"opencollective-postinstall@npm:^2.0.2":
version: 2.0.3
resolution: "opencollective-postinstall@npm:2.0.3"
bin:
opencollective-postinstall: index.js
checksum: d75b06b80eb426aaf099307ca4398f3119c8c86ff3806a95cfe234b979b80c07080040734fe2dc3c51fed5b15bd98dae88340807980bdc74aa1ebf045c74ef06
languageName: node
linkType: hard

"opener@npm:^1.5.2":
version: 1.5.2
resolution: "opener@npm:1.5.2"
Expand Down Expand Up @@ -11719,7 +11663,7 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"p-limit@npm:^3.0.2, p-limit@npm:^3.1.0":
"p-limit@npm:^3.1.0":
version: 3.1.0
resolution: "p-limit@npm:3.1.0"
dependencies:
Expand Down Expand Up @@ -11755,15 +11699,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"p-locate@npm:^5.0.0":
version: 5.0.0
resolution: "p-locate@npm:5.0.0"
dependencies:
p-limit: ^3.0.2
checksum: a233d775c870e00c734adabd29f66f93824df076683c0d5a2dc16e5285b02d80c1bf3bab43b9881e4a5b16b37bb86f1922aebb094674703d30a4973041d5c0f6
languageName: node
linkType: hard

"p-map@npm:^2.0.0":
version: 2.1.0
resolution: "p-map@npm:2.1.0"
Expand Down Expand Up @@ -12272,15 +12207,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"pkg-dir@npm:^5.0.0":
version: 5.0.0
resolution: "pkg-dir@npm:5.0.0"
dependencies:
find-up: ^5.0.0
checksum: 86f6ecee1787d8fe1606fd831f823f967c6ea0d760ce714af6afd2fec076ce71fbedcb57b339d93b84edf90ccdd81d4e6e2c10fcde21684ef3ffee5e05fd37dc
languageName: node
linkType: hard

"pkg-up@npm:3.1.0":
version: 3.1.0
resolution: "pkg-up@npm:3.1.0"
Expand Down Expand Up @@ -14335,7 +14261,7 @@ resolve@^2.0.0-next.3:
"@ssen/prettier-config": ^1.2.0
eslint: ^7.22.0
eslint-config-prettier: ^8.1.0
husky: ^4.3.8
husky: ^5.2.0
lint-staged: ^10.5.4
prettier: ^2.2.1
languageName: unknown
Expand Down Expand Up @@ -14621,13 +14547,6 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"semver-regex@npm:^3.1.2":
version: 3.1.2
resolution: "semver-regex@npm:3.1.2"
checksum: 6a83740f3fc24379629be068e677c71c57e0d9df4977eb56d863f26a7830b85f14d9f1af71ca3a84df9ac70fcd9ce8821466064f5652ffa0dc343b50ded86698
languageName: node
linkType: hard

"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0, semver@npm:^5.7.1":
version: 5.7.1
resolution: "semver@npm:5.7.1"
Expand Down Expand Up @@ -16952,13 +16871,6 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"which-pm-runs@npm:^1.0.0":
version: 1.0.0
resolution: "which-pm-runs@npm:1.0.0"
checksum: 0bb79a782e98955afec8f35a3ae95c4711fdd3d0743772ee98211da67c2421fdd4c92c95c93532cc0b4dcc085d8e27f3ad2f8a9173cb632692379bd3d2818821
languageName: node
linkType: hard

"which@npm:1, which@npm:^1.2.9, which@npm:^1.3.1":
version: 1.3.1
resolution: "which@npm:1.3.1"
Expand Down

0 comments on commit 56060cb

Please sign in to comment.