We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prepare
1 parent 146e679 commit e3406d8Copy full SHA for e3406d8
package.json
@@ -9,7 +9,7 @@
9
"!/contracts/mocks/**/*"
10
],
11
"scripts": {
12
- "prepare": "git config --local core.hooksPath .githooks",
+ "prepare": "scripts/prepare.sh",
13
"compile": "hardhat compile",
14
"lint": "npm run lint:js && npm run lint:sol",
15
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",
scripts/prepare.sh
@@ -0,0 +1,5 @@
1
+#!/usr/bin/env bash
2
+
3
+set -euo pipefail
4
5
+if git status &>/dev/null; then git config core.hooksPath .githooks; fi
0 commit comments