Skip to content

Commit c35aa13

Browse files
authored
chore: use husky instead hook plugin (#1029)
1 parent 6586e34 commit c35aa13

5 files changed

Lines changed: 13 additions & 285 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
#!/bin/sh
2-
31
yarn lint-staged

.yarn/plugins/@yarnpkg/plugin-git-hooks.cjs

Lines changed: 0 additions & 259 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ nodeLinker: node-modules
44

55
plugins:
66
- path: ./.yarn/plugins/postinstallDev.cjs
7-
- checksum: f8ce3a541a57481f6213647cfe7ac8555d87cb1fc23a73a102e64e12be07f603826d822f4d0285333400f0f15baed92510c33dcce75dde2953b2811e36efa012
8-
path: .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs
9-
spec: "https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-hooks/main/bundles/%40yarnpkg/plugin-git-hooks.js"
10-
11-
gitHooksPath: .github/hooks

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"prepack": "yarn insert-cli-metadata && yarn build && yarn update-docs",
2323
"insert-cli-metadata": "tsx scripts/insert-cli-metadata.ts",
2424
"update-docs": "tsx scripts/generate-cli-docs.ts",
25-
"postinstall": "node -e \"console.log('We have an active developer community on Discord. You can find it on https://discord.gg/crawlee-apify-801163717915574323.');\""
25+
"postinstall": "node -e \"console.log('We have an active developer community on Discord. You can find it on https://discord.gg/crawlee-apify-801163717915574323.');\"",
26+
"prepare": "husky"
2627
},
2728
"files": [
2829
"dist"
@@ -123,7 +124,6 @@
123124
"@types/cors": "^2.8.17",
124125
"@types/execa": "^2.0.2",
125126
"@types/express": "^5.0.0",
126-
"@types/is-ci": "^3.0.4",
127127
"@types/jju": "^1.4.5",
128128
"@types/js-levenshtein": "^1",
129129
"@types/lodash.clonedeep": "^4",
@@ -136,6 +136,7 @@
136136
"cross-env": "^10.0.0",
137137
"eslint": "^9.25.1",
138138
"eslint-config-prettier": "^10.1.2",
139+
"husky": "^9",
139140
"lint-staged": "^16.0.0",
140141
"mock-stdin": "^1.0.0",
141142
"prettier": "^3.5.3",

yarn.lock

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,15 +1584,6 @@ __metadata:
15841584
languageName: node
15851585
linkType: hard
15861586

1587-
"@types/is-ci@npm:^3.0.4":
1588-
version: 3.0.4
1589-
resolution: "@types/is-ci@npm:3.0.4"
1590-
dependencies:
1591-
ci-info: "npm:^3.1.0"
1592-
checksum: 10c0/80a3d444d06af53b32429ef9e70184adf12bd98a2f851d8c050aecf7b4abfdab9671abc317785be834d41cad98331992040147ef382bacc2b2a441fee1549a3e
1593-
languageName: node
1594-
linkType: hard
1595-
15961587
"@types/jju@npm:^1.4.5":
15971588
version: 1.4.5
15981589
resolution: "@types/jju@npm:1.4.5"
@@ -2271,7 +2262,6 @@ __metadata:
22712262
"@types/cors": "npm:^2.8.17"
22722263
"@types/execa": "npm:^2.0.2"
22732264
"@types/express": "npm:^5.0.0"
2274-
"@types/is-ci": "npm:^3.0.4"
22752265
"@types/jju": "npm:^1.4.5"
22762266
"@types/js-levenshtein": "npm:^1"
22772267
"@types/lodash.clonedeep": "npm:^4"
@@ -2300,6 +2290,7 @@ __metadata:
23002290
express: "npm:~5.2.0"
23012291
globby: "npm:~15.0.0"
23022292
handlebars: "npm:~4.7.8"
2293+
husky: "npm:^9"
23032294
indent-string: "npm:^5.0.0"
23042295
is-ci: "npm:~4.1.0"
23052296
istextorbinary: "npm:~9.5.0"
@@ -3006,13 +2997,6 @@ __metadata:
30062997
languageName: node
30072998
linkType: hard
30082999

3009-
"ci-info@npm:^3.1.0":
3010-
version: 3.9.0
3011-
resolution: "ci-info@npm:3.9.0"
3012-
checksum: 10c0/6f0109e36e111684291d46123d491bc4e7b7a1934c3a20dea28cba89f1d4a03acd892f5f6a81ed3855c38647e285a150e3c9ba062e38943bef57fee6c1554c3a
3013-
languageName: node
3014-
linkType: hard
3015-
30163000
"ci-info@npm:^4.0.0, ci-info@npm:^4.1.0":
30173001
version: 4.4.0
30183002
resolution: "ci-info@npm:4.4.0"
@@ -5241,6 +5225,15 @@ __metadata:
52415225
languageName: node
52425226
linkType: hard
52435227

5228+
"husky@npm:^9":
5229+
version: 9.1.7
5230+
resolution: "husky@npm:9.1.7"
5231+
bin:
5232+
husky: bin.js
5233+
checksum: 10c0/35bb110a71086c48906aa7cd3ed4913fb913823715359d65e32e0b964cb1e255593b0ae8014a5005c66a68e6fa66c38dcfa8056dbbdfb8b0187c0ffe7ee3a58f
5234+
languageName: node
5235+
linkType: hard
5236+
52445237
"iconv-lite@npm:^0.7.0, iconv-lite@npm:^0.7.2, iconv-lite@npm:~0.7.0":
52455238
version: 0.7.2
52465239
resolution: "iconv-lite@npm:0.7.2"

0 commit comments

Comments
 (0)