Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix module entrypoints #121

Merged
merged 4 commits into from
May 9, 2023
Merged

Fix module entrypoints #121

merged 4 commits into from
May 9, 2023

Conversation

jfschwarz
Copy link
Collaborator

This fixes the paths to package's entrypoint / index files.

@jfschwarz jfschwarz requested a review from asgeir-s May 2, 2023 14:51
@@ -87,8 +88,5 @@
"@openzeppelin/contracts": "^4.8.1",
"@openzeppelin/contracts-upgradeable": "^4.8.1",
"ethers": "^5.7.1"
},
"peerDependencies": {
"ethers": "^5.7.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember that when using the zodiac package in another project, we got some problems when we did not specify the correct hardhat and ethers versions as peerDependencies.

I think it was that if you added it to a project that used a hardhat or ethers version older, then once specified here, it would break (if I remember correctly, it was because some of the functions take hre from hardhat as input and will not work with older versions, I can not quit remembering what was the case with ethers).

Have you tested using it from other packages without the peerDependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested with a local install now and this seems to work fine. I believe this issue might have been resolved when we got rid of the hardhat dependency.

I found and fixed another issue when consumed within CRA, though. (Should really have done the local install testing earlier, would have saved us some PRs. 😅)

@jfschwarz jfschwarz requested a review from asgeir-s May 3, 2023 08:27
Copy link
Contributor

@asgeir-s asgeir-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jfschwarz jfschwarz merged commit 25bf6bf into master May 9, 2023
@jfschwarz jfschwarz deleted the fix-module-entrypoints branch May 9, 2023 07:43
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants