How do I fork and edit a third-party package?


#1

I have a project (based on elm-create-app) using some Elm package from http://package.elm-lang.org/. I want to modify this package; how can I do that? Ideally, the “hot reloader” should detect it and rebuild the project (when I tried editing the files in elm-stuff/packages, nothing seemed to happen…)

Per the FAQ, should I move the source of the package to some other dir, and add the new dir to source-directories in elm-package.json? If yes, should I then also remove it from dependencies section?


#2

Yes you can do that. I’m also sometimes doing this when exploring usage of a package and modifying it this way. When everything is stable, I come back to the package and apply modifications if it is mine, or start discussing with the author if not.


#3

Ok, thanks for the info!


#4

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.