patch-package
patch-package copied to clipboard
request to support `npm:` aliases
All package managers support installing dependencies via npm alias, which is handy when you are working with different versions of one library.
example:
...
"rpr3.0.1": "npm:@react-pdf/[email protected]",
"rpr3.0.2": "npm:@react-pdf/renderer@^3.0.2",
...
patch-package doesn't support this feature and I have no chance to modify a package because it is installed in a folder that differs from the package name.
switched to pnpm which natively supports packages patch (including aliases)
just pnpm patch @react-pdf/renderer and select version you wish to patch from menu