patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

request to support `npm:` aliases

Open jeetiss opened this issue 2 years ago • 1 comments

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.

jeetiss avatar Jan 21 '23 09:01 jeetiss

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

kopach avatar Oct 04 '24 14:10 kopach