-
Notifications
You must be signed in to change notification settings - Fork 2.3k
No information about how to use a forked version of this repo #1963
Comments
Tricky! Let me see what I can find real fast: there's a yarn issue, which is still open, and it looks like the npm issue was closed as too heated? Eep! Alas, it's another tricky monorepo quirk. Have you looked into using In my experience, to really make something behave like an NPM package, you have publish it to NPM. I usually do this with an NPM org account. Might want to read the NPM org documentation, but it's relatively easy to set up and publish, once you get the hang of it. The process is essentially:
Note if you have changes that you're testing out, I recommend keeping your package name/version changes on a separate branch from the core code changes, to make it easier to pull your changes in should you decide to PR it. Hope this helps. As for this issue, not sure if this belongs in Truffle's development documentation somewhere, but it could certainly be helpful. Especially if we can flesh out the steps a bit more to make it easier. I'll leave this open specifically for the task of adding the relevant contributor docs. Thanks for raising this concern! Let me know if either of the suggestions work out for you. |
Do we want to add the above to the truffle-contract docs? |
Sorry for the late response. I've successfully published several custom releases using the aforementioned workflow, thank you! But it's still too complex for the ones who want to participate. Are there any plans for making this forking process more developer friendly? I mean plugging in a fork into your project without packing and releasing a group of npm packages? |
Hey @chebykin, apologies for the radio silence here. Happy to entertain any ideas on how to move this forward! |
Issue
I've made some improvements to
truffle-contract
submodule and want to use them within my project and maybe will make a pull request later. Common patterns like hardcoding your github fork repo and branch don't work. How can I include mytruffle
fork into a custom project?Steps to Reproduce
Fork the repo and try to include this modified codebase into your dApp project
Expected Behavior
I want to write something like
in my
package.json
fileActual Results
It's not so easy to figure out how to do that.
The text was updated successfully, but these errors were encountered: