This adds a diff to your repo, not an entire fork of the dependency.
A package manager like pnpm will install the package as usual, then apply your patch over the top.
https://pnpm.io/cli/patch