diff --git a/package.json b/package.json index 85d1c282..15054ea2 100644 --- a/package.json +++ b/package.json @@ -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": "*", @@ -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": { diff --git a/yarn.lock b/yarn.lock index 1b350b66..9a453e5f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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: @@ -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" @@ -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": "*" @@ -16145,6 +16153,18 @@ typescript@4.2.3: 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"