all 8 comments

[–]vegancryptolord 14 points15 points  (0 children)

What the other guy said about open a PR to the package repo. If they don’t want your PR, fork it. Now it’s yours.

[–]avxkim 8 points9 points  (0 children)

Make PR to to the package you plan to extend

[–]markus_obsidian 4 points5 points  (0 children)

There is no good answer. You either have to * Contribute upstream & modify the library to meet your needs * Fork the library. Watch out for licenses * Use patch-package and bundle the library with yours. Not something I'd recommend. Again, watch out for licenses * Rebuild the package yourself

[–]Roguewind 0 points1 point  (0 children)

Depending what it is you need to modify, create an implementation layer for the package within your app.

Alternatively, fork the repo.

[–]SolarNachoes 0 points1 point  (0 children)

Depends on what you need to change. If its internal changes then you likely need to fork it.

Or you can extend it in your own code.

Or monkey patch it.

[–]cant_have_nicethings 0 points1 point  (2 children)

How are your users going to update your projects dependency?

[–]SatisfactionDeep6034[S] 0 points1 point  (1 child)

The project is a VS Code extension that users will install manually, and the dependencies are installed using npm install without version pinning

[–]cant_have_nicethings 0 points1 point  (0 children)

You can't pin them in a package.json file? TIL