Skip to content

Commit 1187b01

Browse files
committed
fix: husky hook and yarn prepare
1 parent cdda1dc commit 1187b01

File tree

9 files changed

+16
-6
lines changed

9 files changed

+16
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ typechain
88
cache
99
cache-hardhat
1010
artifacts
11+
artifacts-hardhat
1112
broadcast
1213

1314
# logs

.gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "lib/forge-std"]
2+
path = lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std
4+
[submodule "lib/solmate"]
5+
path = lib/solmate
6+
url = https://github.com/transmissions11/solmate
7+
[submodule "lib/ds-test"]
8+
path = lib/ds-test
9+
url = https://github.com/dapphub/ds-test

.husky/pre-commit

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
cd contracts
54
yarn lint-staged

foundry.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ src = 'src' # the source directory
33
test = 'src/test' # the test directory
44
script = 'scripts' # the script directory
55
out = 'artifacts/src' # the output directory (for artifacts)
6-
libs = [] # a list of library directories
6+
libs = ["lib"]
77
remappings = [] # a list of remappings
88
libraries = [] # a list of deployed libraries to link against
99
cache = true # whether to cache builds or not

hardhat.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const config: HardhatUserConfig = {
6868
},
6969
},
7070
paths: {
71+
artifacts: "./artifacts-hardhat",
7172
cache: "./cache-hardhat",
7273
sources: "./src",
7374
tests: "./integration-test",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "yarn lint:ts && yarn lint:sol",
1414
"coverage": "hardhat coverage",
1515
"coverage:forge": "forge coverage",
16-
"prepare": "cd .. && husky install contracts/.husky"
16+
"prepare": "husky install .husky"
1717
},
1818
"devDependencies": {
1919
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",

0 commit comments

Comments
 (0)