Skip to content

Commit

Permalink
Sync node_modules on git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
piglovesyou committed Feb 23, 2022
1 parent a45667c commit b222c40
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
"webpack": "4.46.0",
"webpack-cli": "4.7.2",
"webpack-dev-server": "3.11.2",
"webpack-node-externals": "2.5.2"
"webpack-node-externals": "2.5.2",
"yarnhook": "^0.5.1"
},
"peerDependencies": {
"@graphql-codegen/cli": "*",
Expand All @@ -146,7 +147,10 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"post-checkout": "yarnhook",
"post-merge": "yarnhook",
"post-rewrite": "yarnhook"
}
},
"lint-staged": {
Expand Down
22 changes: 21 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7589,7 +7589,7 @@ __metadata:
languageName: node
linkType: hard

"execa@npm:^4.1.0":
"execa@npm:^4.0.3, execa@npm:^4.1.0":
version: 4.1.0
resolution: "execa@npm:4.1.0"
dependencies:
Expand Down Expand Up @@ -7966,6 +7966,13 @@ __metadata:
languageName: node
linkType: hard

"find-parent-dir@npm:^0.3.0":
version: 0.3.1
resolution: "find-parent-dir@npm:0.3.1"
checksum: 55e722584760cfbc6611901c7ced5081345cf629e2ecd6a4f6704b13b5a1876c8d9d9db5fd4965ba23e1ecbc24a8b62af40379cfef1ffa0231719b9d924eebdd
languageName: node
linkType: hard

"find-up@npm:^3.0.0":
version: 3.0.0
resolution: "find-up@npm:3.0.0"
Expand Down Expand Up @@ -8564,6 +8571,7 @@ fsevents@~2.3.1:
webpack-dev-server: 3.11.2
webpack-node-externals: 2.5.2
yaml: 1.10.2
yarnhook: ^0.5.1
peerDependencies:
"@graphql-codegen/cli": "*"
"@graphql-codegen/import-types-preset": "*"
Expand Down Expand Up @@ -16145,6 +16153,18 @@ [email protected]:
languageName: node
linkType: hard

"yarnhook@npm:^0.5.1":
version: 0.5.1
resolution: "yarnhook@npm:0.5.1"
dependencies:
execa: ^4.0.3
find-parent-dir: ^0.3.0
bin:
yarnhook: index.js
checksum: 8af2420e392c13792a6c8a44688c830a27661d917954d87faacab732299e79bf0cdefb55d68affc2543bcb65b0404e96dacd5230c92dd838026c4eed26409fef
languageName: node
linkType: hard

"yn@npm:3.1.1":
version: 3.1.1
resolution: "yn@npm:3.1.1"
Expand Down

0 comments on commit b222c40

Please sign in to comment.