Content
@
0 reply
0 recast
2 reactions
AbuUsama
@abuusama
I have literally spent the last 24 hours trying to get a foundry project to work in a monorepo 😵💫 😵💫 😵💫 first i thought i was just smooth brained, but I cant find any examples on GitHub either so maybe its just not possible?......
2 replies
0 recast
0 reaction
maurelian
@maurelian.eth
You can look at the Optimism monorepo, which was using node modules until sometime this summer. Have you modified your remappings in foundry.toml?
1 reply
0 recast
0 reaction
AbuUsama
@abuusama
I tried that and a text file but it seems like the issue was the fact that I was using npm for contract deps which really dosnt work that well without doing some weird stuff with the imports in node modules
1 reply
0 recast
0 reaction
maurelian
@maurelian.eth
There might also be an allow_paths property you can set in the toml file. I know it can work we ran with it that way for a while
1 reply
0 recast
1 reaction
AbuUsama
@abuusama
now i officially feel smooth brained! i ahve been looking at these docs for bloody ages https://book.getfoundry.sh/faq.html?highlight=allow#forge-fails-in-javascript-monorepos-pnpm
1 reply
0 recast
0 reaction
maurelian
@maurelian.eth
Nice 😊
0 reply
0 recast
0 reaction