Skip to content

Commit 61853b0

Browse files
authored
Change Git hooks to be optional (#3211)
This changes Git hooks to be opt-in by running `yarn setup`. This is an attempt to fix Dependabot, which [seems to be having issues again](https://github.com/MetaMask/snaps/actions/runs/13781637142/job/38540795812). This is just a guess at this point though, since the logs don't provide much information about what's going on.
1 parent 0d9472d commit 61853b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"child-workspace-package-names-as-json": "ts-node scripts/child-workspace-package-names-as-json.ts",
2424
"clean": "yarn workspaces foreach --all --parallel --verbose run clean",
2525
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts",
26-
"postinstall": "simple-git-hooks",
2726
"install-chrome": "./scripts/install-chrome.sh",
2827
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
2928
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check",
@@ -33,6 +32,7 @@
3332
"lint:tsconfig": "node scripts/verify-tsconfig.mjs",
3433
"prepare-preview-builds": "./scripts/prepare-preview-builds.sh",
3534
"publish-previews": "yarn workspaces foreach --all --parallel --verbose run publish:preview",
35+
"setup": "simple-git-hooks",
3636
"test": "yarn workspaces foreach --all --parallel --verbose run test",
3737
"test:browser": "yarn workspaces foreach --all --verbose run test:browser",
3838
"test:clean": "yarn workspaces foreach --all --parallel --verbose run test:clean",

0 commit comments

Comments
 (0)